StepProperties class
Contains properties and state information for stepper rendering.
Used internally by StepVariant implementations to build the appropriate stepper layout. Provides access to step data, current state, sizing configuration, and layout direction.
Also includes utility methods like hasFailure to check for failed steps and array-style access to individual steps.
Constructors
-
StepProperties.new({required StepSize size, required List<
Step> steps, required ValueListenable<StepperValue> state, required Axis direction}) -
Creates StepProperties.
const
Properties
- direction → Axis
-
Layout direction for the stepper.
final
- hasFailure → bool
-
Returns true if any step has a failed state.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → StepSize
-
Size configuration for step indicators.
final
-
state
→ ValueListenable<
StepperValue> -
Listenable state containing current step and step states.
final
-
steps
→ List<
Step> -
List of steps in the stepper.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
int index) → Step? - Safely accesses a step by index, returning null if out of bounds.