blob: 10211894e770aa62b0e1c3b4f6828102d14f63d2 [file] [log] [blame] [view]
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](https://pub.dev/documentation/go_router/latest/go_router/GoRouter/GoRouter.html)
parameter:
```dart
GoRouter(
/* ... */
errorBuilder: (context, state) => ErrorScreen(state.error),
);
```