NavigationExtension extension

on

Methods

pop() → void

Available on BuildContext, provided by the NavigationExtension extension

pushNamed(String routeName, {Object? arguments}) Future

Available on BuildContext, provided by the NavigationExtension extension

Push the route with the given routeName onto the navigator that most tightly encloses the given context. The arguments parameter is passed to the pushed route.
pushNamedAndRemoveUntil(String routeName, {required RoutePredicate predicate, Object? arguments}) Future

Available on BuildContext, provided by the NavigationExtension extension

Push the route with the given routeName onto the navigator that most tightly encloses the given context.
pushReplaceNamed(String routeName, {Object? arguments}) Future

Available on BuildContext, provided by the NavigationExtension extension

Replace the current route of the navigator that most tightly encloses the given context with the route named routeName.