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 error handler default behaviour.
FlutterError.presentError(details);
}
}