sync_ease/functions/navigation_functions
library
Functions
-
back({dynamic result, Map<String, dynamic>? arguments})
→ void
-
Navigate back to the previous route with an optional result or arguments.
-
to(Widget page)
→ void
-
Navigate to a page.
-
toClearAndPush(Widget page, {RouteSettings? settings})
→ void
-
Clear all existing routes and push the provided page onto the navigation stack, optionally with custom settings.
-
toClearAndPushNamed(String routeName, {Map<String, dynamic>? arguments})
→ void
-
Clear all existing routes and push a named route onto the navigation stack.
-
toClearAndPushWithFade(Widget page, {RouteSettings? settings})
→ void
-
Removes all routes from the navigation stack and pushes the specified page with a fade transition with optional arguments without requiring a BuildContext.
-
toNamed(String routeName, {Map<String, dynamic>? arguments})
→ void
-
Navigate to a named route with optional arguments.
-
toPushAndClearAll(Widget page, {RouteSettings? settings})
→ void
-
Push the provided page onto the navigation stack and remove all routes until a specified predicate is met.
-
toPushAndClearUntil(Widget page, RoutePredicate predicate, {RouteSettings? settings})
→ void
-
Push the provided page onto the navigation stack and remove routes until a specified predicate is met.
-
toPushNamedAndClearUntil(String routeName, RoutePredicate predicate, {Map<String, dynamic>? arguments})
→ void
-
Push a named route onto the navigation stack and remove routes until a specified predicate is met.
-
toReplace(Widget page, {Map<String, dynamic>? arguments})
→ void
-
Replace the current page with the provided page widget, optionally passing arguments.
-
toReplaceNamed(String routeName, {Map<String, dynamic>? arguments})
→ void
-
Replace the current route with a named route, optionally passing arguments.