NavigatorContextExtensions extension

on

Methods

Available on BuildContext, provided by the NavigatorContextExtensions extension

Navigates to a new screen using MaterialPageRoute.
popScreen() → void

Available on BuildContext, provided by the NavigatorContextExtensions extension

Pops the current route off the navigator stack.
popUntilRoot() → void

Available on BuildContext, provided by the NavigatorContextExtensions extension

Pops all routes off the navigator stack until the root route is reached.
push<T extends Object?>(Widget page) Future<T?>

Available on BuildContext, provided by the NavigatorContextExtensions extension

Pushes a new page onto the navigator stack and returns a Future that completes when the new page is popped.
pushNamed<T extends Object?>(String routeName, {Object? arguments}) Future<T?>

Available on BuildContext, provided by the NavigatorContextExtensions extension

Pushes a named route onto the navigator stack.
pushReplacement<T extends Object?, TO extends Object?>(Widget page) Future<T?>

Available on BuildContext, provided by the NavigatorContextExtensions extension

Replaces the current route with a new page.