CloudRouteObserver class

Inheritance

Constructors

CloudRouteObserver()
factory

Properties

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

Methods

addNotification(String routeName, dynamic stateInstance) → void
添加路由状态通知(该方法框架内部调用)
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 with newRoute.
override
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
duplicateRemovalRoutes({List<String> ruleOutRouteNames = const []}) List<Route>
去重后路由集合 ruleOutRouteName 排除路由名称
getAllRoutes() List<Route>
获取当前pushlist所有路由
getRoutes(String routePath) List<Route>
根据路由地址获取同一页面所有路由对象
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notificationState(String routePath, Map<String, dynamic> result, {String? action}) → void
通知State状态 routePath 路由地址 action 数据回传识别标识(可为空) result 回传通知参数
remove(String routePath) → void
移除路由缓存
removeNotification(String routePath) → void
移除路由状态通知(该方法框架内部调用)
setRouteEvent(OnRouteEventIntercept routeEventIntercept) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance CloudRouteObserver
no setter