IntroController class
The controller of demo flow.
Constructors
- IntroController({required int stepCount, WillDoCallback? onWillPrevious, WillDoCallback? onWillNext, WillDoCallback? onWillClose})
Properties
- currentStep → int
-
The code of current step.
no setter
-
currentStepKey
→ GlobalKey<
State< ?StatefulWidget> > -
The GlobalKey of the highlighted widget for this step.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNextStep → bool
-
Whether has next step.
no setter
- hasPreviousStep → bool
-
Whether has previous step.
no setter
- intro → Intro
-
The
Intro
instance it's attached to.no setter - isFirstStep → bool
-
Whether the current step is the first step.
no setter
- isLastStep → bool
-
Whether the current step is the last step.
no setter
- isOpened → bool
-
Whether the demo flow is running.
no setter
- mounted → bool
-
no setter
- onWillClose → WillDoCallback?
-
This callback is called when the demo flow is about to close.
final
- onWillNext → WillDoCallback?
-
This callback is called when the demo flow is about to jump to the next step.
final
- onWillPrevious → WillDoCallback?
-
This callback is called when the demo flow is about to jump to the previous step.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stepCount → int
-
The total number of steps.
final
Methods
-
close(
) → Future< void> - Close the demo flow.
-
dispose(
) → void - Destroy this demo flow.
-
getStepKey(
int step) → GlobalKey< State< StatefulWidget> > -
Get the GlobalKey of the specified
step
. -
jumpTo(
int step) → Future< void> -
Jump this demo flow to the
step
. -
next(
) → Future< void> - Jump this demo flow to next step.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
) → Future< void> - Jump this demo flow to previous step if not at the first step.
-
refresh(
) → void -
start(
BuildContext context, {int initStep = 1}) → Future< void> - Start this demo flow.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited