route method
dynamic
route(
- String name,
- NyRouteView view, {
- PageTransitionType? transition,
- List<
RouteGuard> ? routeGuards,
Add a new route with a widget.
Implementation
route(String name, NyRouteView view,
{PageTransitionType? transition, List<RouteGuard>? routeGuards}) {
this._addRoute(NyRouterRoute(
name: name,
view: view,
pageTransitionType: transition ?? PageTransitionType.rightToLeft,
routeGuards: routeGuards));
}