isolateError method
Report the error in an isolate.
Implementation
void isolateError(dynamic ex, StackTrace stack) {
// Record the Exception
getError(ex);
FlutterError.reportError(FlutterErrorDetails(
exception: ex,
stack: StackTrace.current,
context: ErrorDescription('error in main()'),
library: 'main.dart',
));
}