ErrorBoundary constructor

const ErrorBoundary({
  1. Key? key,
  2. required Widget child,
  3. Widget? fallback,
  4. void onError(
    1. Object error,
    2. StackTrace stack
    )?,
  5. String title = 'Something went wrong',
  6. String subtitle = 'An unexpected error occurred. Please try again.',
})

Implementation

const ErrorBoundary({
  super.key,
  required this.child,
  this.fallback,
  this.onError,
  this.title = 'Something went wrong',
  this.subtitle = 'An unexpected error occurred. Please try again.',
});