ErrorBoundary constructor
const
ErrorBoundary({
- required List<
ReactNode> children, - required ReactNode fallback,
- void onError(
- Object error,
- StackTrace stack
Creates an error-boundary placeholder.
Implementation
const ErrorBoundary({
required this.children,
required this.fallback,
this.onError,
});