NavigationResolver class

Represents a guarded navigation event which can be either continued or aborted used in AutoRouteGuard.onNavigation

Constructors

default constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
isReevaluating bool
Whether the navigation event is triggered by StackRouter.reevaluateGuards
final
isResolved bool
Whether _completer is completed see Completer.isCompleted
no setter
pendingRoutes List<RouteMatch>
If there are more that one route in the navigation even pending routes will be the routes that's waiting to be processed by guard
final
route RouteMatch
The route being processing by the guard
final
routeName String
Helper to get RouteMatch.name
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

next([bool continueNavigation = true]) → void
Completes _completer with either true to continue navigation or false to abort navigation
nextOrBack([bool continueNavigation = true]) → void
Helpful for when you want to revert to the previous url back can not navigate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redirect<T extends Object?>(PageRouteInfo route, {OnNavigationFailure? onFailure, bool replace = false}) Future<T?>
Keeps track of the navigated-to route To be auto-removed when completer is resolved
resolveNext(bool continueNavigation, {bool reevaluateNext = true}) → void
Completes _completer with either true to continue navigation or false to abort navigation
toString() String
A string representation of this object.
inherited

Operators

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