SelectStep class

Single-select wizard step.

Inheritance

Constructors

SelectStep({required String key, required String prompt, required List<String> options, int? defaultIndex, String? description})
Creates a select step.
const

Properties

defaultIndex → int?
Default selected index.
final
description → String?
Optional description displayed for this step.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
key → String
Unique key for this step (used to store answer).
finalinherited
options → List<String>
Available options.
final
prompt → String
The prompt to display.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createModel(Map<String, dynamic> answers) → Model
Creates the model for this step.
override
extractAnswer(Model model) → dynamic
Extracts the answer from the model after completion.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldSkip(Map<String, dynamic> answers) → bool
Whether this step should be skipped based on previous answers.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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