RouteExtension extension
- on
Properties
- pop → void
-
Available on BuildContext, provided by the RouteExtension extension
Pops the current screen from the navigator stack.no setter
Methods
-
maybePop(
) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Safely pops the current screen if possible. -
popUntil(
String path) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Pops routes until reaching the one with the given name. -
popUntilPredicate(
RoutePredicate predicate) → void -
Available on BuildContext, provided by the RouteExtension extension
Pops until a custom condition is met. -
popWithResult<
T> ([T? result]) → void -
Available on BuildContext, provided by the RouteExtension extension
Pops the current screen and returns a result. -
push(
Widget page) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Pushes a new widget screen onto the navigator stack. -
pushAndRemoveUntil(
Widget page) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Pushes a new widget and removes all previous screens. -
pushCustomRoute(
PageRouteBuilder route) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Pushes a custom PageRoute, like one with animation or transition. -
pushNamed(
String path) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Pushes a new route onto the navigator stack using a named route. -
pushNamedAndRemoveUntil(
String path) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Pushes a named route and removes all previous routes. -
pushReplacement(
Widget page) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Replaces the current widget with a new one. -
pushReplacementNamed(
String path) → Future< void> -
Available on BuildContext, provided by the RouteExtension extension
Replaces the current route with a named route.