RouteInfo class
Your functions can also process information about routes by using the function's RouteInfo info
parameter. To get the current route in the navigator, call info.currentRoute(context)
.
Also, info.routeWhenAdded
contains the route that was the current one when the interceptor
was added through the BackButtonInterceptor.add()
method.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- routeWhenAdded → Route?
-
The current route when the interceptor was added
through the BackButtonInterceptor.add() method.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
currentRoute(
BuildContext context) → Route? -
ifRouteChanged(
BuildContext context) → bool - Return true if the current route is NOT the same route of when the interceptor was created.
-
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