ExitCallback typedef

ExitCallback = FutureOr<bool> Function(BuildContext context, GoRouterState state)

Signature for function used in RouteBase.onExit.

If the return value is true or the future resolve to true, the route will exit as usual. Otherwise, the operation will abort.

Implementation

typedef ExitCallback = FutureOr<bool> Function(
    BuildContext context, GoRouterState state);