AutoRouteExtensionGuardBase extension

This extension is for converting your project's guards into auto_route guards

on

Methods

toAutoRouteGuardGlobal<T extends PageRouteInfo<Object?>>(GuardedRouteGeneratingFunction<T> redirect) → AutoRouteGuard

Available on GuardBase, provided by the AutoRouteExtensionGuardBase extension

Converts your project's guard into an auto_route guard pretended to be used in the router's guards getter, globally to the whole router
toAutoRouteGuardLocal<T extends PageRouteInfo<Object?>>(GuardedRouteGeneratingFunction<T> redirect) → AutoRouteGuard

Available on GuardBase, provided by the AutoRouteExtensionGuardBase extension

Converts your project's guard into an auto_route guard pretended to be used in the router's route definition, locally to that route.