unpatchEntity method

void unpatchEntity(
  1. String type,
  2. String id,
  3. List<String> keys
)

Remove specific patch keys.

Implementation

void unpatchEntity(String type, String id, List<String> keys) {
  _write(() {
    final p = _patches[type]?[id];
    if (p == null) return;
    for (final k in keys) {
      p.remove(k);
    }
    _notifyEntity(type, id);
  });
}