VoRouterRedirect typedef

VoRouterRedirect = FutureOr<String?> Function(Ref ref, BuildContext context, GoRouterState state)

Redirect callback with access to Riverpod state (auth, onboarding, …).

Return a new location to redirect, or null to continue.

Implementation

typedef VoRouterRedirect =
    FutureOr<String?> Function(
      Ref ref,
      BuildContext context,
      GoRouterState state,
    );