setEntityError method
Implementation
void setEntityError(String type, String id, String? error) {
_write(() {
final k = _ek(type, id);
_entityStates[k] = (_entityStates[k] ?? const EntityState()).copyWith(
isFetching: false,
error: error,
clearError: error == null,
);
_notifyEntity(type, id);
});
}