IGetNavigation mixin

A mixin that provides navigation methods for managing routes in a Flutter application.

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

back<T>([T? result]) → void
Pops the current route and optionally returns result.
backAndtoNamed<T, R>(String page, {T? result, Object? arguments}) Future<R?>
Pops the current route and navigates to the named route page.
backUntil(bool predicate(GetPage)) → void
Pops routes until the predicate is met.
goToUnknownPage([bool clearPages = true]) → void
Navigates to an unknown page. Optionally clears all pages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off<T>(Widget page(), {bool? opaque, Transition? transition, Curve? curve, Duration? duration, String? id, String? routeName, bool fullscreenDialog = false, dynamic arguments, List<BindingsInterface> bindings = const [], bool preventDuplicates = true, bool? popGesture, bool showCupertinoParallax = true, double gestureWidth(BuildContext context)?}) Future<T?>
Replaces the current route with the specified page.
offAll<T>(Widget page(), {bool predicate(GetPage route)?, bool opaque = true, bool? popGesture, String? id, String? routeName, dynamic arguments, List<BindingsInterface> bindings = const [], bool fullscreenDialog = false, Transition? transition, Curve? curve, Duration? duration, bool showCupertinoParallax = true, double gestureWidth(BuildContext context)?}) Future<T?>?
Clears the navigation stack and navigates to the specified page.
offAllNamed<T>(String newRouteName, {dynamic arguments, String? id, Map<String, String>? parameters}) Future<T?>?
Clears the navigation stack and navigates to the named route newRouteName.
offNamed<T>(String page, {dynamic arguments, String? id, Map<String, String>? parameters}) Future<T?>
Replaces the current route with the named route page.
offNamedUntil<T>(String page, {bool predicate(GetPage route)?, dynamic arguments, String? id, Map<String, String>? parameters}) Future<T?>?
Replaces routes until the specified named route page is reached.
offUntil<T>(Widget page(), bool predicate(GetPage), [Object? arguments]) Future<T?>
Replaces routes with page until the predicate is met.
popModeUntil(String fullRoute, {PopMode popMode = PopMode.history}) Future<void>
Pops routes until the specified fullRoute is reached using the specified popMode.
removeRoute<T>(String name) → void
Removes the route with the specified name from the navigation stack.
to<T>(Widget page(), {bool? opaque, Transition? transition, Curve? curve, Duration? duration, String? id, String? routeName, bool fullscreenDialog = false, dynamic arguments, List<BindingsInterface> bindings = const [], bool preventDuplicates = true, bool? popGesture, bool showCupertinoParallax = true, double gestureWidth(BuildContext context)?}) Future<T?>
Navigates to the specified page with optional configurations.
toNamed<T>(String page, {dynamic arguments, String? id, bool preventDuplicates = true, Map<String, String>? parameters}) Future<T?>
Navigates to the named route page with optional arguments and configurations.
toNamedAndOffUntil<T>(String page, bool predicate(GetPage), [Object? data]) Future<T?>
Navigates to the named route page and clears routes until the predicate is met.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited