setEntityFetching method

void setEntityFetching(
  1. String type,
  2. String id, {
  3. required bool fetching,
})

Implementation

void setEntityFetching(String type, String id, {required bool fetching}) {
  _write(() {
    final k = _ek(type, id);
    _entityStates[k] = (_entityStates[k] ?? const EntityState()).copyWith(
      isFetching: fetching,
    );
    _notifyEntity(type, id);
  });
}