AppRouterState class

Inheritance

Constructors

AppRouterState(String name, AppRoutes<AppRoute> _routes, List<Listenable> _watch, {AppRouterState? parent})

Properties

currentGlobal AppRoute
no setter
currentLocal AppRoute
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isActive bool
no setter
length int
no setter
name String
final
parent AppRouterState?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<AppRoute>
no setter

Methods

activate() → void
add(AppRoute value) → void
add the given route to the end of the stack. if the given route is already present further up the stack, then the stack is trimmed to that position instead.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
deactivate() → void
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).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pop([AppRoute? route]) → void
pop the given route, and all routes after it, from the stack. if no route is provided, then the last route is popped. if the given route is not in the stack, then no changes are made.
put(AppRoute value) → void
put the given route into the stack as the last route, replacing the route currently in that position. if the given route is already present further up the stack, then the stack is trimmed to that position instead. Note that this operation does not increase the stack depth.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
set(AppRoute value) → void
set the stack to the given route
setNewRoutePath(AppRoute value) → void
toString() String
A string representation of this object.
override

Operators

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