upsert method

void upsert(
  1. String id,
  2. T entity
)

Add or update entity

Implementation

void upsert(String id, T entity) {
  value.upsert(id, entity);
  notifyListenersTransaction();
}