ErrorBoundary constructor

const ErrorBoundary({
  1. required List<ReactNode> children,
  2. required ReactNode fallback,
  3. void onError(
    1. Object error,
    2. StackTrace stack
    )?,
})

Creates an error-boundary placeholder.

Implementation

const ErrorBoundary({
  required this.children,
  required this.fallback,
  this.onError,
});