setLoading method

void setLoading()

Implementation

void setLoading() {
  _state = ViewState.loading;
  notifyListeners();
}