deleteItemById method

void deleteItemById(
  1. String id
)

Deletes an item from the store by the given id.

Implementation

void deleteItemById(String id) {
  var item = getById(id);
  if (item != null) {
    _delete(item);
    _update(StreamElement(item: item, operation: Operation.delete));
  }
}