StepVariant class abstract
Abstract base class for step visual presentation variants.
Defines how steps are rendered and connected to each other. Three built-in variants are provided: circle (default), circleAlt (alternative layout), and line (minimal design). Custom variants can be created by extending this class.
Example:
Stepper(
variant: StepVariant.circle,
steps: mySteps,
controller: controller,
);
Constructors
- StepVariant.new()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context, StepProperties properties) → Widget - Builds the stepper widget using this variant's visual style.
-
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.
inherited
Constants
- circle → const StepVariant
- Circle variant with numbered indicators and connecting lines.
- circleAlt → const StepVariant
- Alternative circle variant with centered step names.
- line → const StepVariant
- Minimal line variant with progress bars as step indicators.