patchEntity method
Merge UI-only fields into the patch layer.
Implementation
void patchEntity(String type, String id, Map<String, Object?> patch) {
_write(() {
_patches.putIfAbsent(type, () => {});
final prev = _patches[type]![id] ?? {};
_patches[type]![id] = {...prev, ...patch};
_notifyEntity(type, id);
});
}