onError static method
App-level error handling.
Implementation
static void onError(FlutterErrorDetails details) {
// Call the App's 'current' error handler.
final handler = errorHandler?.flutterExceptionHandler;
if (handler != null) {
handler(details);
} else {
// Call Flutter's default error handler.
FlutterError.presentError(details);
}
}