I visit a Tutorial and there was this code:
pictureDialog.setItems(pictureDialogItems) {dialog, which -> when(which) { 0 -> Toast.makeText