onErrorReport method
If there's a error reporting routine available. Override if you like
Implementation
Future<void> onErrorReport(Object exception, StackTrace stack) async {
if (inErrorReport != null) {
await inErrorReport!(exception, stack);
}
}