RouteManager class

Mixed in types

Constructors

RouteManager({required AppRoute initialRoute, bool debugging = true, Map<String, dynamic> initialRouteArgs = const <String, dynamic>{}, PageWrapper? routeBuildInterceptor, TransitionProvider? defaultTransition, Duration? transitionDuration, Duration? reverseTransitionDuration, bool? defaultCupertinoTransition})

Properties

currentRoute AppRoute
no setter
debugging bool
final
defaultCupertinoTransition bool?
Sets Cupertino page transition as default for all routes.
final
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
final
pages List<AppPage>
no setter
routes List<AppRoute>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visibleSubRoot AppRoute?
no setter

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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pop() → void
push(AppRoute route, {Map<String, dynamic>? data}) → void
remove(AppRoute route, {dynamic data}) → void
Removes the specified route from the routes list. If the specified route is sub-root then entire sub-tree will be deleted.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removePage(AppPage page, dynamic result) → void
removeUntil(AppRoute route) → void
Removes all routes from the routes list after the specified.
replaceAll(List<AppRoute> replaceWith) → void
replaceLast(AppRoute replaceWith, {Map<String, dynamic>? data}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

observer AppRouteObserver?
getter/setter pair