AutoRouteGuard class abstract
A middleware for stacked routes where clients can either resume or abort the navigation event
- Implementers
Constructors
- AutoRouteGuard()
-
Default constructor
const
- AutoRouteGuard.redirect(PageRouteInfo? redirect(NavigationResolver resolver))
-
Builds a simple instance that returns either a redirect-to route or null for no redirect
factory
- AutoRouteGuard.redirectPath(String? redirect(NavigationResolver resolver))
-
Builds a simple instance that returns either a redirect-to path or null for no redirect
factory
- AutoRouteGuard.simple( )
-
Builds a simple instance that takes in the OnNavigation callback
factory
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
clients will call
resolver.next(true --> default)
to continue navigation orresolver.next(false)
to abort navigation example -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited