SelectPrompt class

Selection prompts (menus, multi-select)

Constructors

SelectPrompt()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

askMultiSelect(String title, List<String> options, {List<String>? defaultSelected, List<bool>? defaults}) → Future<List<int>>
Multi-select with checkboxes and arrow key navigation
askMultiSelectNames(String title, List<String> options, {List<String>? defaultSelected}) → Future<List<String>>
Multi-select that returns the selected option names
askTheme(String prompt, List<String> themes, List<String> descriptions, {int initialIndex = 0}) → Future<int>
Theme/option selector with descriptions
parseMultiSelectInput(String input, int optionCount, List<int> defaultIndices) → List<int>
Parses the simple prompt multi-select syntax.
showMenu(String title, List<String> options, {int? defaultIndex}) → Future<int>
Show a menu with arrow key navigation and get user selection
showMenuGetValue(String title, List<String> options, {int? defaultIndex}) → Future<String>
Show a menu and return the selected option string