Called whenever the Flutter framework catches an error.
The default behavior is to call dumpErrorToConsole.
You can set this to your own function to override this default behavior. For example, you could report all errors to your server.
If the error handler throws an exception, it will not be caught by the Flutter framework.
Set this to null to silently catch and ignore errors. This is not recommended.
static FlutterExceptionHandler onError = dumpErrorToConsole