IModularNavigator class abstract

Implemented types

Constructors

IModularNavigator()

Properties

hashCode int
The hash code for this object.
no setterinherited
no setter
path String
Actual path
no setter
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 notifies its listeners.
inherited
canPop() bool
The initial route cannot be popped off the navigator, which implies that this function returns true only if popping the navigator would not remove the initial route.
maybePop<T extends Object?>([T result]) Future<bool>
Consults the current route's Route.willPop method, and acts accordingly, potentially popping the route as a result; returns whether the pop request should be considered handled.
Navigate to a new screen. This action replaces all past routes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T extends Object?>([T result]) → void
Removes the current Route from the stack of routes.
popAndPushNamed<T extends Object?, TO extends Object?>(String routeName, {TO? result, Object? arguments, bool forRoot = false}) Future<T?>
Pop the current route off the navigator and navigate to a route.
popUntil(bool predicate(Route)) → void
Calls pop repeatedly on the navigator that most tightly encloses the given context until the predicate returns true.
push<T extends Object?>(Route<T> route) Future<T?>
Navigate to a new screen.
pushNamed<T extends Object?>(String routeName, {Object? arguments, bool forRoot = false}) Future<T?>
Navigate to a route.
pushNamedAndRemoveUntil<T extends Object?>(String newRouteName, bool predicate(Route), {Object? arguments, bool forRoot = false}) Future<T?>
Push the route with the given name onto the navigator that most tightly encloses the given context, and then remove all the previous routes until the predicate returns true.
pushReplacementNamed<T extends Object?, TO extends Object?>(String routeName, {TO? result, Object? arguments, bool forRoot = false}) Future<T?>
Replace the current route of the navigator that most tightly encloses the given context by pushing the route named routeName and then disposing the previous route once the new route has finished animating in.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
setNavigatorKey(GlobalKey<NavigatorState>? navigatorkey) → void
setObservers(List<NavigatorObserver> navigatorObservers) → void
toString() String
A string representation of this object.
inherited

Operators

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