addRouteGuard method

NyRouterRoute addRouteGuard(
  1. RouteGuard guard
)

Add a route guard to the route.

Implementation

NyRouterRoute addRouteGuard(RouteGuard guard) {
  _routeGuards.add(guard);
  NyNavigator.instance.router.updateRoute(this);
  return this;
}