setLoading method

void setLoading()

Implementation

void setLoading() {
  _isLoading = true;
  _error = null;
  StateFlow().notifyListeners(key);
}