RouterUtil<R extends Route> class
- Inheritance
-
- Object
- NavigatorObserver
- RouteObserver<
R> - RouterUtil
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
-
debugObservingRoute(
R route) → bool -
Whether this observer is managing changes for the specified route.
inherited
-
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
.override -
didReplace(
{Route? newRoute, Route? oldRoute}) → void -
The Navigator replaced
oldRoute
withnewRoute
.override -
didStartUserGesture(
Route route, Route? previousRoute) → void -
The Navigator's routes are being moved by a user gesture.
override
-
didStopUserGesture(
) → void -
User gesture is no longer controlling the Navigator.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
) → void -
subscribe(
RouteAware routeAware, R route) → void -
Subscribe
routeAware
to be informed about changes toroute
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
RouteAware routeAware) → void -
Unsubscribe
routeAware
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
instance
→ RouterUtil<
Route> -
no setter
-
getter/setter pair
Static Methods
-
popAndPushNamed<
T extends Object?, TO extends Object?> (String routeName, {TO? result, Object? arguments}) → Future< T?> - 仿照 Navigator.popAndPushNamed 的方法,先 pop 当前的页面,在 push 新页面。(会回调路由栈里的下一个页面的onResume和onPause方法)
-
pushNamed<
T extends Object?> (dynamic routeName, {Object? arguments}) → Future< T?> -
pushNamedAndRemoveUntil<
T extends Object?> (String newRouteName, RoutePredicate predicate, {Object? arguments}) → Future< T?> - 仿照 Navigator.pushNamedAndRemoveUntil 的方法,(会回调路由栈里的下一个页面的onResume和onPause方法)
-
pushReplacementNamed<
T extends Object?, TO extends Object?> (String routeName, {TO? result, Object? arguments}) → Future< T?> - 仿照 Navigator.pushReplacementNamed 的方法,(会回调路由栈里的下一个页面的onResume和onPause方法)