remove method

void remove(
  1. String id
)

Removes an item from the collection.

Implementation

void remove(String id) {
  if (_items.containsKey(id)) _items.remove(id);
}