MultipleSelectFallback<E> class
Specialized fallback for multiple selection that returns a list of items.
This class extends InteractiveFallback specifically for interactive inputs that allow selecting multiple options from a list and returning them as a List<E>.
The generic type E represents the element type of the options list and the resulting selected items.
Example usage:
final fallback = MultipleSelectFallback<String>(
question: 'Select the features you want to enable:',
options: ['Authentication', 'Push Notifications', 'Analytics', 'Offline Support'],
);
// Use this fallback with InteractiveFallbackManager
final selectedFeatures = InteractiveFallbackManager.runFallback(fallback);
- Inheritance
-
- Object
- InteractiveFallback<
List< E> > - MultipleSelectFallback
Constructors
Properties
- defaultValue → dynamic
-
For InteractiveInputType.ask and InteractiveInputType.confirm,
the default value to suggest.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputType → InteractiveInputType
-
The type of interactive input to use.
finalinherited
- label → String?
-
The label to display before the question.
finalinherited
-
optionLabels
→ List<
String> ? -
For InteractiveInputType.select and InteractiveInputType.multipleSelect,
optional custom labels for the options.
finalinherited
- options → List?
-
For InteractiveInputType.select and InteractiveInputType.multipleSelect,
the list of options to select from.
finalinherited
- question → String
-
The question or prompt to display to the user.
finalinherited
- 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
-
validateIfNeeded(
) → void -
Validates configuration only when needed
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited