NavigatorStackManager class
管理所有的路由和页面信息
- Inheritance
-
- Object
- ChangeNotifier
- NavigatorStackManager
Constructors
Properties
-
callbacks
↔ Map<
RouteConfig, Completer> ? -
callbacks, use for push async and pop with result
getter/setter pair
- emptyPage → Page
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
pages
→ List<
Page> -
no setter
-
routes
→ Map<
String, MuffinPageBuilder> -
所有路由
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
foundInCurrentRoutes(
String path) → bool -
foundInTotalRoutes(
String path) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
pop<
T extends Object> ([T? result]) → void - pop with arguments similar to Navigator.of(context).pop same as popUntil(uris.last)
-
popUntil<
T extends Object> (String target, [T? result]) → void -
pop until a page, find the first match
target, if not find in this navigator, find in native, this way will remove all un match VC and route -
push(
String path, {dynamic arguments}) → Future< void> - only used in MuffinNavigator init MuffinNavigator.setNewRoutePath
-
pushNamed<
T extends Object?> (String named, [dynamic arguments]) → Future< T?> - push a page with String, similar to Navigator.of(context).pushNamed call eg.. - MuffinNavigator.of(context).pushNamed
-
removeLastUri(
) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited