fallbackUIRenderer property

  1. @override
ReactNode? Function(dynamic error, ReactErrorInfo? info)? get fallbackUIRenderer
override

A renderer that will be used to render "fallback" UI instead of the child component tree that crashed.

Related: onComponentIsUnrecoverable, onComponentDidCatch

Implementation

@override
ReactNode Function(dynamic error, ReactErrorInfo? info)?
    get fallbackUIRenderer =>
        (props[_$key__fallbackUIRenderer__ErrorBoundaryProps] ?? null)
            as ReactNode Function(dynamic error, ReactErrorInfo? info)?;
  1. @override
set fallbackUIRenderer (ReactNode? value(dynamic error, ReactErrorInfo? info)?)
override

A renderer that will be used to render "fallback" UI instead of the child component tree that crashed.

Related: onComponentIsUnrecoverable, onComponentDidCatch

Implementation

@override
set fallbackUIRenderer(
        ReactNode Function(dynamic error, ReactErrorInfo? info)? value) =>
    props[_$key__fallbackUIRenderer__ErrorBoundaryProps] = value;