NavigationX extension

Named navigation helpers that return the resulting Future.

on

Properties

canPop → bool

Available on BuildContext, provided by the NavigationX extension

Whether it is possible to pop.
no setter

Methods

pop<T>([T? result]) → void

Available on BuildContext, provided by the NavigationX extension

Pops the current route.
popCount(int count) → void

Available on BuildContext, provided by the NavigationX extension

Pops up to count routes.
popUntilFirst() → void

Available on BuildContext, provided by the NavigationX extension

Pops until the first route.
push<T>(Widget page) → Future<T?>

Available on BuildContext, provided by the NavigationX extension

Pushes a new route and awaits the result.
pushAndClear<T>(Widget page) → Future<T?>

Available on BuildContext, provided by the NavigationX extension

Pushes page and clears the entire navigation stack.
pushAndRemoveUntil<T>(Widget page, bool predicate(Route)) → Future<T?>

Available on BuildContext, provided by the NavigationX extension

Pushes page and removes every route until predicate.
pushReplacement<T, TO>(Widget page) → Future<T?>

Available on BuildContext, provided by the NavigationX extension

Replaces the current route with page.