WizardControllerImpl class

Implemented types

Constructors

WizardControllerImpl({required List<WizardStepController> stepControllers, int initialIndex = 0, StepCallback? onStepChanged})

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
The current wizard step index.
no setteroverride
indexStream Stream<int>
Streams the wizard step index.
no setteroverride
pageController PageController
Controller to control the page view.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepControllers List<WizardStepController>
The step controllers.
final
stepCount int
The step count.
no setteroverride

Methods

animateTo({required int index, Duration? delay, Duration duration = const Duration(milliseconds: 150), Curve curve = Curves.easeIn}) Future<void>
Animate to the step index. If the current step index equals the provided step index nothing will happen.
override
disableGoBack(int index) → void
Disable the previous button for specified index.
override
disableGoNext(int index, {Duration duration = const Duration(milliseconds: 150), Curve curve = Curves.easeIn}) Future<void>
Disable the next button for specified index. When disabling an index that is lower then the current index the Wizard will automatically animate back to the provided index.
override
dispose() → void
Dispose the controller
override
enableGoBack(int? index) → void
Enable the previous button for specified index.
override
enableGoNext(int? index) → void
Enable the next button for specified index.
override
getIsAnimateToEnabled(int index) bool
Indicates whether its allowed to animate to specified index.
override
getIsAnimateToEnabledStream(int index) Stream<bool>
Stream whether its allowed to animate to specified index.
override
getIsGoBackEnabled() bool
Indicates whether the back button currently is enabled for current index.
override
getIsGoBackEnabledStream() Stream<bool>
Streams whether the back button is enabled for current index.
override
getIsGoNextEnabled() bool
Indicates whether the next button currently is enabled for current index.
override
getIsGoNextEnabledStream([int? index]) Stream<bool>
Stream whether the next button is enabled for current index.
override
getStepIndex(WizardStep step) int
Gets the index for the provided step.
override
isFirstStep(int index) bool
Indicates whether the step index matches the first step.
override
isLastStep(int index) bool
Indicates whether the step index matches the last step.
override
next({Duration? delay, Duration duration = const Duration(milliseconds: 150), Curve curve = Curves.easeIn}) Future<void>
Show the next step. If the current step equals the last step nothing will happen.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous({Duration duration = const Duration(milliseconds: 150), Curve curve = Curves.easeIn}) Future<void>
Show the previous step. If current step equals the first step nothing will happen.
override
toString() String
A string representation of this object.
inherited

Operators

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