mz_navigation_history_observer class

(可选)导航路由观察者方法

Inheritance

Constructors

mz_navigation_history_observer()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
history → dynamic
Gets a clone of the navigation history as an immutable list.
no setter
historyChangeStream → dynamic
Accessor to the history change stream.
no setter
The navigator that the observer is observing, if any.
no setterinherited
next → dynamic
Gets the next route in the navigation history, which is the most recently popped route.
no setter
poppedRoutes → dynamic
Gets a clone of the popped routes as an immutable list.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top → dynamic
Gets the top route in the navigation stack.
no setter

Methods

didPop(Route route, Route? previousRoute) → void
The Navigator popped route.
override
didPush(Route route, Route? previousRoute) → void
打开页面
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
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