ConditionalStep class

Conditional wizard step.

Inheritance

Constructors

ConditionalStep({required WizardStep step, required bool condition(Map<String, dynamic>)})
Creates a conditional step.
const

Properties

condition → bool Function(Map<String, dynamic>)
Condition determining whether to show the step.
final
description → String?
Optional description displayed for this step.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
key → String
Unique key for this step (used to store answer).
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
step → WizardStep
The step to conditionally show.
final

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.
override
toString() → String
A string representation of this object.
inherited

Operators

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