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