router library Null safety

Classes

NyNavigator
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, NavigationType navigationType = NavigationType.push, dynamic result, bool removeUntilPredicate(Route route)?, PageTransitionSettings? pageTransitionSettings, PageTransitionType? pageTransition, dynamic onPop(dynamic value)?}) → dynamic
Navigate to a new route in your /routes/router.dart.

Enums

Typedefs

NyRouteView = Widget Function(BuildContext context)