ErrorBoundary constructor

const ErrorBoundary({
  1. required Widget child,
  2. ErrorFallbackBuilder? fallbackBuilder,
  3. void onException(
    1. BaseException exception
    )?,
  4. VoidCallback? onRetry,
  5. bool showDetails = false,
  6. Key? key,
})

Wraps a subtree with error handling and reporting helpers.

Implementation

const ErrorBoundary({
  required this.child,
  this.fallbackBuilder,
  this.onException,
  this.onRetry,
  this.showDetails = false,
  super.key,
});