AppNavigationService class
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 nonexistent 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