AppNavigationService class Null safety

Constructors

AppNavigationService()
factory

Properties

appContext BuildContext?
Get app context
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
Global navigation key for whole application
read / write
routeObserver RouteObserver<Route>
App route observer
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

canPop() bool
Whether the navigator can be popped.
goBack<T extends Object>({T? result}) → void
Pop the top-most route off the navigator.
maybePop<T extends Object>([Object? args]) 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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
popUntil(String route) → void
Calls pop repeatedly until the predicate returns true.
push<T extends Object>(Route<T> route) Future<T?>
Pushing new page into navigation stack [...]
pushAndRemoveUntil<T extends Object>(Route<T> route, {bool predicate(Route)?}) Future<T?>
Push the given route onto the navigator, and then remove all the previous routes until the predicate returns true.
pushNamed<T extends Object>(String routeName, {Object? args}) Future<T?>
Pushing new page into navigation stack [...]
pushNamedAndRemoveUntil<T extends Object>(String routeName, {Object? args, bool predicate(Route)?}) Future<T?>
Push the route with the given name onto the navigator, and then remove all the previous routes until the predicate returns true.
pushReplacementNamed<T extends Object, TO extends Object>(String routeName, {Object? args}) Future<T?>
Replace the current route of the navigator by pushing the given route and then disposing the previous route once the new route has finished animating in.
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

instance AppNavigationService
read-only