ControlsDetails class Null safety

Container for all the information necessary to build a Stepper widget's forward and backward controls for any given step.

Used by Stepper.controlsBuilder.

Annotations

Constructors

ControlsDetails({required int currentStep, required int stepIndex, VoidCallback? onStepCancel, VoidCallback? onStepContinue})
Creates a set of details describing the Stepper.
const

Properties

currentStep int
Index that is active for the surrounding Stepper widget. This may be different from stepIndex if the user has just changed steps and we are currently animating toward that step.
final
hashCode int
The hash code for this object.
read-onlyinherited
isActive bool
True if the indicated step is also the current active step. If the user has just activated the transition to a new step, some Stepper.type values will lead to both steps being rendered for the duration of the animation shifting between steps.
read-only
onStepCancel VoidCallback?
The callback called when the 'cancel' button is tapped.
final
onStepContinue VoidCallback?
The callback called when the 'continue' button is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stepIndex int
Index of the step for which these controls are being built. This is not necessarily the active index, if the user has just changed steps and this step is animating away. To determine whether a given builder is building the active step or the step being navigated away from, see isActive.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited