utils/utils library

Properties

checkboxTheme → Theme
Theme for checkboxes.
final
inputTheme → Theme
Theme for text inputs.
final
radioTheme → Theme
Theme for radio buttons.
final

Functions

multiSelect<T>(String message, {required List<T> options, required String display(T)}) List<T>
Prompts the user to select multiple options from a list.
prompt(String message, {String? defaultValue, String? validatorErrorMessage}) String
Prompts the user for text input.
singleSelect<T>(String message, {required List<T> options, required String display(T)}) → T
Prompts the user to select a single option from a list.