router/router library

Classes

NyNavigator
The NyNavigator class is a singleton class that manages the routing of the application. It is a thin layer on top of Navigator to help you encapsulate and manage routing at one place.
NyRouter
NyRouterRoute manages routing, registering routes with transitions, navigating to routes, closing routes. It is a thin layer on top of Navigator to help you encapsulate and manage routing at one place.

Functions

nyRoutes(dynamic build(NyRouter router)) NyRouter
Builds the routes in the router.dart file
routeTo(String routeName, {dynamic data, Map<String, dynamic>? queryParameters, NavigationType navigationType = NavigationType.push, dynamic result, bool removeUntilPredicate(Route route)?, PageTransitionSettings? pageTransitionSettings, PageTransitionType? pageTransition, dynamic onPop(dynamic value)?}) → dynamic
Navigate to a new route.
routeToAuth({dynamic data, NavigationType navigationType = NavigationType.pushAndForgetAll, dynamic result, bool removeUntilPredicate(Route route)?, PageTransitionSettings? pageTransitionSettings, PageTransitionType? pageTransition, dynamic onPop(dynamic value)?}) → dynamic
Navigate to the auth route.
routeToInitial({dynamic data, NavigationType navigationType = NavigationType.pushAndForgetAll, dynamic result, bool removeUntilPredicate(Route route)?, PageTransitionSettings? pageTransitionSettings, PageTransitionType? pageTransition, dynamic onPop(dynamic value)?}) → dynamic
Navigate to the initial route.

Typedefs

NyRouteView = Widget Function(BuildContext context)
RouteView = (String, Widget Function(BuildContext context))
Type definition for the route view.