Error handling Topic
By default, go_router comes with default error screens for both MaterialApp
and CupertinoApp
as well as a default error screen in the case that none is
used. You can also replace the default error screen by using the
errorBuilder
parameter:
GoRouter(
/* ... */
errorBuilder: (context, state) => ErrorScreen(state.error),
);
Classes
- GoRouter Get started Upgrading Configuration Redirection Web Deep linking Named routes Error handling
- The route configuration for the app.