updat method
Implementation
void updat(BaseEntity entity) {
_entities.removeWhere((element) => element.id == entity.id);
_entities.add(entity);
}
void updat(BaseEntity entity) {
_entities.removeWhere((element) => element.id == entity.id);
_entities.add(entity);
}