AutoRouteObserver class

A Navigator observer that notifies AutoRouteAwares of changes to the state of their Route.

AutoRouteObserver informs subscribers whenever a route of type R is pushed on top of their own route of type R or popped from it. This is for example useful to keep track of page transitions, e.g. a RouteObserver<PageRoute> will inform subscribed AutoRouteAwares whenever the user navigates away from the current page route to another page route.

Inheritance

Constructors

AutoRouteObserver()

Properties

hashCode → int
The hash code for this object.
no setterinherited
The navigator that the observer is observing, if any.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

didChangeTabRoute(TabPageRoute route, TabPageRoute previousRoute) → void
called when tab route reactivates
override
didChangeTop(Route topRoute, Route? previousTopRoute) → void
The top most route has changed.
inherited
didInitTabRoute(TabPageRoute route, TabPageRoute? previousRoute) → void
called when a tab route activates
override
didPop(Route route, Route? previousRoute) → void
The Navigator popped route.
override
didPush(Route route, Route? previousRoute) → void
The Navigator pushed route.
override
didRemove(Route route, Route? previousRoute) → void
The Navigator removed route.
inherited
didReplace({Route? newRoute, Route? oldRoute}) → void
The Navigator replaced oldRoute with newRoute.
inherited
didStartUserGesture(Route route, Route? previousRoute) → void
The Navigator's routes are being moved by a user gesture.
inherited
didStopUserGesture() → void
User gesture is no longer controlling the Navigator.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(AutoRouteAware routeAware, RouteData route) → void
Subscribe AutoRouteAware to be informed about changes to route.
toString() → String
A string representation of this object.
inherited
unsubscribe(AutoRouteAware routeAware) → void
Unsubscribe AutoRouteAware.

Operators

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