ContextRoutingExtensions extension

Routing extensions of BuildContext

on

Methods

canPop() bool?
Equals to Navigator.of(context).canPop()
maybePop<T>([T? arguments]) Future<bool?>
Equals to Navigator.of(context).maybePop()
pop<T>({T? result}) → void
Equals to Navigator.of(context).pop()
popUntil(String route) → void
Equals to Navigator.of(context).popUntil()
push<T>(Route<T> route) Future<T?>
Equals to Navigator.of(context).push() Give it the Route you want to push
pushAndRemoveUntil<T>(Route<T> route, {bool predicate(Route)?}) Future<T?>
Equals to Navigator.of(context).pushAndRemoveUntil() Just give it the route you want to push
pushEasy<T>(Widget page, {RouteSettings? settings}) Future<T?>
Similar to Navigator.of(context).push() Just give it the page you want to push
pushEasyAndRemoveUntil<T>(Widget page, {bool predicate(Route)?}) Future<T?>
Easier way of Navigator.of(context).pushAndRemoveUntil() Just give it the page you want to push
pushNamed<T>(String routeName, {Object? arguments}) Future<T?>
Equals to Navigator.of(context).push() Just give it the routeName you want to push
pushNamedAndRemoveUntil<T>(String routeName, {Object? arguments, bool predicate(Route)?}) Future<T?>
Equals to Navigator.of(context).pushNamedAndRemoveUntil() Just give it the routeName you want to push
pushReplacement<T, X>(Route<T> route, {X? result}) Future<T?>
Equals to Navigator.of(context).pushReplacement() Just give it the route you want to push
pushReplacementEasy<T, X>(Widget page, {X? result}) Future<T?>
Similar to Navigator.of(context).pushReplacement() Just give it the page you want to push
pushReplacementNamed<T, X>(String routeName, {Object? arguments}) Future<T?>
Equals to Navigator.of(context).pushReplacementNamed() Just give it the routeName you want to push