GoExceptionHandler typedef

GoExceptionHandler = void Function(BuildContext context, GoRouterState state, GoRouter router)

The function signature of GoRouter.onException.

Use state.error to access the exception.

Implementation

typedef GoExceptionHandler =
    void Function(BuildContext context, GoRouterState state, GoRouter router);