setLoading method

void setLoading({
  1. bool notify = true,
})

Implementation

void setLoading({
  bool notify = true,
}) {
  _state = ResourceStateEnum.LOADING;

  if (notify) {
    notifyListeners();
  }
}