onError method
Override if you like to customize your error handling.
Implementation
void onError(FlutterErrorDetails details) {
if (con != null) {
con!.onError(details);
} else {
// Call the State object's Exception handler
_appState.currentErrorFunc!(details);
}
}