onError method

void onError(
  1. FlutterErrorDetails details
)

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);
  }
}