update method
Apply change to the entity with id and emit.
Implementation
void update(String id, void Function(TextEntity entity) change) {
final entity = byId(id);
if (entity == null) return;
change(entity);
notifyListeners();
}
Apply change to the entity with id and emit.
void update(String id, void Function(TextEntity entity) change) {
final entity = byId(id);
if (entity == null) return;
change(entity);
notifyListeners();
}