menu/menu library

Functions

command(dynamic body(String command)) → void
Declare function called when we enter a non handled command
devWrite(Object? message) → void
Write a line on the presenter, deprecated to make it a temp debug call
enter(dynamic body()) → void
Declare function called when we enter a menu
item(String name, dynamic body(), {String? cmd, bool? solo}) → void
Declare a menu item
leave(dynamic body()) → void
Declare function called when we leave a menu
Declare a menu
run the last declared menu/items
prompt([Object? message]) Future<String?>?
Prompt for a string.
showMenu(void declare()) Future<void>
Show a new menu.
solo_item(String name, dynamic body(), {String? cmd, bool? solo}) → void
Unless solo is set to false, will run as solo.
solo_menu(String name, void body(), {String? cmd, bool? solo}) → void
Unless solo is set to false, will run as solo.
write(Object? message) → void
Write a line on the presenter