MultiSelect class
A multiple select or checkbox input component.
Constructors
-
MultiSelect({required String prompt, required List<
String> options, List<bool> ? defaults}) - Constructs a MultiSelect component with the default theme.
-
MultiSelect.withTheme({required String prompt, required List<
String> options, required Theme theme, List<bool> ? defaults}) - Constructs a MultiSelect component with the supplied theme.
Properties
-
defaults
→ List<
bool> ? -
The default values to indicate which options are checked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
options
→ List<
String> -
The List of available
String
options to show to the user.final - prompt → String
-
The prompt to be shown together with the user's input.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → Theme
-
The theme of the component.
final
Methods
-
createState(
) → _MultiSelectState -
Creates a
State
for current component, inspired by Flutter'sStatefulWidget
. -
disposeState(
State< Component> state) → void -
Disposes current state, to make the
Context
null and unusable after the rendering is completely finished.inherited -
interact(
) → List< int> -
Starts the rendering processs.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pipeState(
State< Component> state) → State<Component> -
Pipes the state after running
createState
in case of needing to handle the state from outside.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited