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
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
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
toString() String
A string representation of this object.
inherited

Operators

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