onFlutterError property
Function which should additionally be called when an error is caught using the FlutterError.onError mechanism. Useful if other packages also need to override this behaviour (such as integration tests).
Implementation
final void Function(FlutterErrorDetails details)? onFlutterError;