NavigationExtension extension
Extension methods on BuildContext to simplify navigation using the Go utility class.
- on
Properties
-
args
→ Map<
String, dynamic> -
Available on BuildContext, provided by the NavigationExtension extension
Retrieves the arguments passed to the current route.no setter
Methods
-
backWithData<
T> (T data) → void -
Available on BuildContext, provided by the NavigationExtension extension
Navigates back to the previous screen with provided data. -
pop(
) → void -
Available on BuildContext, provided by the NavigationExtension extension
Pops the current route from the navigation stack. -
popUntilNamedRoute(
String routeName) → void -
Available on BuildContext, provided by the NavigationExtension extension
Pops until a specific route is reached. -
replaceWithNamedRoute(
String routeName, {Map< String, dynamic> ? args}) → void -
Available on BuildContext, provided by the NavigationExtension extension
Replaces the current route with a named route. -
to(
String routeName, {Map< String, dynamic> ? args}) → void -
Available on BuildContext, provided by the NavigationExtension extension
Navigates to the specified route with optional arguments. -
toAndClearAll(
String routeName, {Map< String, dynamic> ? args}) → void -
Available on BuildContext, provided by the NavigationExtension extension
Navigates to the specified route and removes all other routes from the stack. -
toAndClearAllNamedRoute(
String routeName, {Map< String, dynamic> ? args}) → void -
Available on BuildContext, provided by the NavigationExtension extension
Navigates to a new route and removes all previous routes from the stack. -
toAndExpectData<
T> (String routeName, {Map< String, dynamic> ? args}) → Future<T?> -
Available on BuildContext, provided by the NavigationExtension extension
Navigates to a named route and expects to receive data back.