ContextNavigationExtension extension
Provides shortcuts for common navigation operations using Navigator.
- on
Methods
-
back(
) → void -
Available on BuildContext, provided by the ContextNavigationExtension extension
Pops the current route off the navigator. -
to<
T extends Object?> (Widget page) → Future< T?> -
Available on BuildContext, provided by the ContextNavigationExtension extension
Pushes a new page onto the navigator. -
toNamed<
T extends Object?> (String routeName, {Object? arguments}) → Future< T?> -
Available on BuildContext, provided by the ContextNavigationExtension extension
Pushes a new named route onto the navigator. -
toNamedRemoveUntil<
T extends Object?> (String routeName, {Object? arguments}) → Future< T?> -
Available on BuildContext, provided by the ContextNavigationExtension extension
Pushes a new named route onto the navigator and removes all the previous routes. Using(route) => false
removes all routes below the new one. -
toNamedRemoveUntilReplace(
String route) → void -
Available on BuildContext, provided by the ContextNavigationExtension extension
-
toNamedReplace<
T extends Object?, TO extends Object?> (String routeName, {Object? arguments}) → Future< T?> -
Available on BuildContext, provided by the ContextNavigationExtension extension
Replaces the current route with a new named route. -
toRemoveUntil<
T extends Object?> (Widget page) → Future< T?> -
Available on BuildContext, provided by the ContextNavigationExtension extension
Pushes a new page onto the navigator and removes all the previous routes. Using(route) => false
removes all routes below the new one. -
toReplace<
T extends Object?, TO extends Object?> (Widget page) → Future< T?> -
Available on BuildContext, provided by the ContextNavigationExtension extension
Replaces the current route with a new page.