StepperValue class
Immutable value representing the current state of a stepper.
Contains the current active step index and a map of step states for any steps that have special states (like failed). Used by StepperController to track and notify about stepper state changes.
Example:
final value = StepperValue(
currentStep: 2,
stepStates: {1: StepState.failed},
);
Constructors
-
StepperValue.new({required Map<
int, StepState> stepStates, required int currentStep}) - Creates a StepperValue.
Properties
- currentStep → int
-
Index of the currently active step (0-based).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stepStates
→ Map<
int, StepState> -
Map of step indices to their special states.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override