data class MenuOptions
This data class is a more readable wrapper for a list of pairs of a command label and the associated action which should be invoked upon calling that command.
MenuOptions(label: String, action: () -> Unit)
This data class is a more readable wrapper for a list of pairs of a command label and the associated action which should be invoked upon calling that command. |
val action: () -> Unit |
|
var all: MutableList<<ERROR CLASS><String, () -> Unit>> |
|
val label: String |
fun add(label: String, action: () -> Unit): MenuOptions |