setEntityStale method

void setEntityStale(
  1. String type,
  2. String id, {
  3. required bool stale,
})

Implementation

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