runZonedError method
Report the error in a zone.
Implementation
void runZonedError(dynamic ex, StackTrace stack) {
// Record the Exception
getError(ex);
FlutterError.reportError(FlutterErrorDetails(
exception: ex,
stack: stack,
context: ErrorDescription('error in file containing main()'),
library: 'main.dart',
));
}