onError method
Override if you like to customize error handling.
Implementation
@override
void onError(FlutterErrorDetails details) {
// Don't call this routine within itself.
if (_inError) {
return;
}
_inError = true;
// Note, the AppController's Error Handler takes precedence if any.
if (controller != null && controller is AppController) {
(controller! as AppController).onError(details);
} else if (inError != null) {
inError!(details);
} else {
super.onError(details);
}
_inError = false;
}