AuthenticationGuard constructor

AuthenticationGuard(
  1. BuildContext context, {
  2. required PageRouteInfo authRoute,
  3. required PageRouteInfo initialScreenRoute,
  4. required PageRouteInfo errorRoute(
    1. Object? error
    ),
  5. bool removeRoutesPredicateOnAuth(
    1. StackRouter router
    )?,
})

Implementation

AuthenticationGuard(
  this.context, {
  required this.authRoute,
  required this.initialScreenRoute,
  required this.errorRoute,
  this.removeRoutesPredicateOnAuth,
});