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

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepIndex int
Zero-based index of the step.
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