clearAllData method

bool clearAllData()

Clears all data and states

Implementation

bool clearAllData() {
  if (errorStates.isNotEmpty || busyStates.isNotEmpty) {
    clearErrors();
    clearBusy();
    update();
    return true;
  }
  return false;
}