updat method

void updat(
  1. BaseEntity entity
)

Implementation

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