isolateError method

void isolateError(
  1. dynamic ex,
  2. StackTrace stack
)

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',
  ));
}