Navigation class
A wrapper for Navigator that does not require a BuildContext.
- Inheritance
-
- Object
- Keyed<
NavigatorState> - Navigation
Constructors
-
Creates a Navigation.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
key
→ GlobalKey<
NavigatorState> -
A GlobalKey for the type,
T
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → NavigatorState?
-
The current state of key.
no setterinherited
Methods
-
canPop(
) → bool - Forwards execution to Navigator.canPop.
-
maybePop<
T> ([T? result]) → Future< bool> - Forwards execution to Navigator.maybePop.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop<
T> ([T? result]) → void - Forwards execution to Navigator.pop.
-
popAndPushNamed<
T, R> (String route, {R? result, Object? arguments}) → Future< T?> - Forwards execution to Navigator.popAndPushNamed.
-
popUntil(
RoutePredicate predicate) → void - Forwards execution to Navigator.popUntil.
-
push<
T> (Route< T> route) → Future<T?> - Forwards execution to Navigator.push.
-
pushAndRemoveUntil<
T> (Route< T> route, RoutePredicate predicate) → Future<T?> - Forwards execution to Navigator.pushAndRemoveUntil.
-
pushNamed<
T> (String route, {Object? arguments}) → Future< T?> - Forwards execution to Navigator.pushNamed.
-
pushNamedAndRemoveUntil<
T> (String route, RoutePredicate predicate, {Object? arguments}) → Future< T?> - Forwards execution to Navigator.pushNamedAndRemoveUntil.
-
pushReplacement<
T, R> (Route< T> route, {R? result}) → Future<T?> - Forwards execution to Navigator.pushReplacement.
-
pushReplacementNamed<
T, R> (String route, {R? result, Object? arguments}) → Future< T?> - Forwards execution to Navigator.pushReplacementNamed.
-
removeRoute(
Route route) → void - Forwards execution to Navigator.removeRoute.
-
removeRouteBelow(
Route anchor) → void - Forwards execution to Navigator.removeRouteBelow.
-
replace<
T> ({required Route old, required Route< T> route}) → void - Forwards execution to Navigator.replace.
-
replaceRouteBelow<
T> ({required Route anchor, required Route< T> route}) → void - Forwards execution to Navigator.replaceRouteBelow.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited