WizardController class
Allows widgets such as the AppBar to invoke functionality on the Wizard This is useful for widgets that are defined above the Wizard, such as a mobile app's AppBar.
- Inheritance
-
- Object
- ChangeNotifier
- WizardController
Constructors
-
WizardController({required Map<
String, WizardRoute> routes, String? initialRoute, String? errorRoute})
Properties
- currentRoute → String
-
no setter
- errorRoute → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- initialRoute → String?
-
final
- isDisposed → bool
-
Whether the notifier has been disposed.
no setterinherited
- isLoading → bool
-
no setter
-
routes
→ Map<
String, WizardRoute> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ List<
WizardRouteSettings< Object?> > -
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
back<
T extends Object?> ([T? result]) → Future< void> -
Requests the wizard to show the previous page. Optionally,
result
can be returned to the previous page. -
complete(
) → void - Requests the wizard to complete.
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
home(
) → void - Requests the wizard to show the first page.
-
jump<
T extends Object?> (String route, {Object? arguments}) → Future< T?> -
Requests the wizard to jump to a specific page. Optionally,
arguments
can be passed to the page. -
next<
T extends Object?> ({Object? arguments}) → Future< T?> -
Requests the wizard to show the next page. Optionally,
arguments
can be passed to the next page. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
replace<
T extends Object?> ({Object? arguments}) → Future< T?> -
Requests the wizard to replace the current page with the next one.
Optionally,
arguments
can be passed to the next page. -
showError<
T extends Object?> (Object error) → Future< T?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited