ZapNavigation extension
Extension on ZapInterface providing convenient navigation methods using the Flutter Navigator.
The ZapNavigation extension includes methods for navigating to pages, pushing and replacing routes, popping routes, and managing route transitions.
- on
Methods
-
back(
) → void -
Available on ZapInterface, provided by the ZapNavigation extension
Pop the current route from the Navigator stack. -
off(
dynamic newPage, {RouteSettings? settings, Transition transition = Transition.native, bool allowSnapshotting = true, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, bool maintainState = true, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), Duration reverseTransitionDuration = const Duration(milliseconds: 300), bool opaque = true}) → Future -
Available on ZapInterface, provided by the ZapNavigation extension
Replace the current page with a new one. -
offAll(
dynamic newPage, {RouteSettings? settings, Transition transition = Transition.native, bool allowSnapshotting = true, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, bool maintainState = true, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), Duration reverseTransitionDuration = const Duration(milliseconds: 300), bool opaque = true}) → Future -
Available on ZapInterface, provided by the ZapNavigation extension
Replace the entire Navigator stack with a new page. -
offAllNamed(
String routeName, {Object? arguments}) → Future -
Available on ZapInterface, provided by the ZapNavigation extension
Replace the entire Navigator stack with a new named route. -
offNamed(
String routeName, {Object? arguments, Object? result}) → Future -
Available on ZapInterface, provided by the ZapNavigation extension
Replace the current named route with a new one. -
reload(
Widget pageName) → void -
Available on ZapInterface, provided by the ZapNavigation extension
-
to(
dynamic page, {RouteSettings? settings, Transition transition = Transition.native, bool allowSnapshotting = true, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, bool maintainState = true, bool fullscreenDialog = false, Duration transitionDuration = const Duration(milliseconds: 300), Duration reverseTransitionDuration = const Duration(milliseconds: 300), bool opaque = true}) → Future -
Available on ZapInterface, provided by the ZapNavigation extension
Navigate to a new page with various configurable options. -
toNamed(
String routeName, {Object? arguments}) → Future -
Available on ZapInterface, provided by the ZapNavigation extension
Navigate to a named route with optional arguments.