Navigation extension

on

Properties

isDarkMode bool

Available on BuildContext, provided by the Navigation extension

no setter

Methods

canPop() bool

Available on BuildContext, provided by the Navigation extension

Check if the navigator can pop.
pop<T>([T? result]) → void

Available on BuildContext, provided by the Navigation extension

Pop the current screen and return to the previous one.
popNamed<T>(T? result) → void

Available on BuildContext, provided by the Navigation extension

Pop the current screen with a named route.
popUntil(bool predicate(Route)) → void

Available on BuildContext, provided by the Navigation extension

Pop all screens until the predicate matches.
push<T>(Widget page) Future<T?>

Available on BuildContext, provided by the Navigation extension

Navigate to a new screen.
pushAndRemoveUntil<T>(Widget page, {bool predicate(Route)?}) Future<T?>

Available on BuildContext, provided by the Navigation extension

Navigate to a new screen and remove all previous screens from the stack.
pushNamed<T>(String routeName, {Object? arguments}) Future<T?>

Available on BuildContext, provided by the Navigation extension

Push a named route.
pushNamedAndRemoveUntil<T>(String routeName, {bool predicate(Route)?, Object? arguments}) Future<T?>

Available on BuildContext, provided by the Navigation extension

Push a named route and remove all previous screens from the stack.
pushReplacement<T, R>(Widget page, {R? result}) Future<T?>

Available on BuildContext, provided by the Navigation extension

Replace the current screen with a new one.
pushReplacementNamed<T, R>(String routeName, {R? result, Object? arguments}) Future<T?>

Available on BuildContext, provided by the Navigation extension

Replace the current screen with a named route.