GuardCallback typedef

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.

Implementation

typedef GuardCallback = Future<void> Function({required bool isSatisfied});