onError method

  1. @override
void onError(
  1. FlutterErrorDetails details
)
override

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 (con != null) {
    con!.onError(details);
  } else if (inError != null) {
    inError!(details);
  } else {
    super.onError(details);
  }
  _inError = false;
}