WizardStep class abstract
Base class for wizard steps.
Constructors
- WizardStep({required String key, String? description})
-
Creates a wizard step.
const
-
WizardStep.conditional({required WizardStep step, required bool condition(Map<
String, dynamic> )}) -
Creates a conditional step (shown only if condition is true).
factory
- WizardStep.confirm({required String key, required String prompt, bool? defaultValue, String? description})
-
Creates a confirmation (yes/no) step.
factory
-
WizardStep.group({required String key, required String title, required List<
WizardStep> steps, String? description}) -
Creates a group of steps with a title.
factory
-
WizardStep.multiSelect({required String key, required String prompt, required List<
String> options, List<int> ? defaultSelected, String? description}) -
Creates a multi-select step.
factory
- WizardStep.password({required String key, required String prompt, ValidateFunc? validate, String? description})
-
Creates a password input step.
factory
-
WizardStep.select({required String key, required String prompt, required List<
String> options, int? defaultIndex, String? description}) -
Creates a single-select step.
factory
- WizardStep.textInput({required String key, required String prompt, String? placeholder, String? defaultValue, ValidateFunc? validate, String? description})
-
Creates a text input step.
factory
Properties
- description → String?
-
Optional description displayed for this step.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
Unique key for this step (used to store answer).
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.
-
extractAnswer(
Model model) → dynamic - Extracts the answer from the model after completion.
-
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited