identicalErrorFrequencyTolerance property

  1. @override
Duration? identicalErrorFrequencyTolerance

The amount of time that is "acceptable" between consecutive identical errors thrown from a component within the tree wrapped by this ErrorBoundary.

If fallbackUIRenderer is not set, and more than one identical error is thrown consecutively by the exact same component anywhere within the tree wrapped by this ErrorBoundary -- more often than the specified duration -- the ErrorBoundary will:

  1. Call onComponentIsUnrecoverable.
  2. Stop attempting to re-mount the tree (to protect the main thread from being locked up).
  3. Render a static copy of the render tree's HTML that was captured at the time of the error.

When this happens, recovery can only occur by passing in a new child to the ErrorBoundary, or by calling ErrorBoundaryComponent.reset.

DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING.

Default: const Duration(seconds: 5)

Implementation

@override
Duration? get identicalErrorFrequencyTolerance => (props[
        _$key__identicalErrorFrequencyTolerance___$ErrorBoundaryPropsMixin] ??
    null) as Duration?;
  1. @override
void identicalErrorFrequencyTolerance=(Duration? value)

The amount of time that is "acceptable" between consecutive identical errors thrown from a component within the tree wrapped by this ErrorBoundary.

If fallbackUIRenderer is not set, and more than one identical error is thrown consecutively by the exact same component anywhere within the tree wrapped by this ErrorBoundary -- more often than the specified duration -- the ErrorBoundary will:

  1. Call onComponentIsUnrecoverable.
  2. Stop attempting to re-mount the tree (to protect the main thread from being locked up).
  3. Render a static copy of the render tree's HTML that was captured at the time of the error.

When this happens, recovery can only occur by passing in a new child to the ErrorBoundary, or by calling ErrorBoundaryComponent.reset.

DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING.

Default: const Duration(seconds: 5)

Implementation

@override
set identicalErrorFrequencyTolerance(Duration? value) => props[
        _$key__identicalErrorFrequencyTolerance___$ErrorBoundaryPropsMixin] =
    value;