StepNumberData class
Data class providing step index context to descendant widgets.
Used internally by the stepper to pass the current step index to child widgets like StepNumber. Accessible via Data.maybeOf.
Example:
final stepData = Data.maybeOf<StepNumberData>(context);
final stepIndex = stepData?.stepIndex ?? 0;
Constructors
- StepNumberData.new({required int stepIndex})
-
Creates StepNumberData.
const
Properties
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