onError property

void Function(Object error, StackTrace stack)? onError
final

Receives the error and a Dart stack at the report site.

Client renderers receive React errors through the class boundary. SSR helpers receive errors while retrying with the Dart fallback.

Implementation

final void Function(Object error, StackTrace stack)? onError;