auto_route library

Classes

AutoRouteGuardSatisfyingPage
A handy widget for ensuring a guard can be satisfied through the page the widget draws.
GuardsAutoRouteGuard

Extensions

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

Typedefs

GuardCallback = Future<void> Function({required bool isSatisfied})
It is used to notify the guard that the user has satisfied the guard's requirements. This callback is used to update the guard's state and continue navigation. It is used in the AutoRouteGuardSatisfyingPage to notify the guard that the user has satisfied the guard's requirements. It is also used in the GuardsAutoRouteGuard to notify the guard that the user has satisfied the guard's requirements.
GuardedRouteGeneratingFunction<T extends PageRouteInfo<Object?>> = T Function(GuardCallback guardCallback)
The function that will be used to generate the page that can satisfy the guard when it's not satisfied and thus, activates the guard.