addRouteGuards method

NyRouterRoute addRouteGuards(
  1. List<RouteGuard> guards
)

Add route guards to the route

Implementation

NyRouterRoute addRouteGuards(List<RouteGuard> guards) {
  guards.forEach((guard) {
    _routeGuards.add(guard);
  });
  NyNavigator.instance.router.updateRoute(this);
  return this;
}