setListFetching method

void setListFetching(
  1. String queryKey, {
  2. required bool fetching,
})

Implementation

void setListFetching(String queryKey, {required bool fetching}) {
  _write(() {
    _lists[queryKey] = (_lists[queryKey] ?? ListState.empty).copyWith(
      isFetching: fetching,
    );
    _notifyList(queryKey);
  });
}