removeItem method

void removeItem(
  1. T item
)

Method to remove an item

Implementation

void removeItem(T item) {
  _items.remove(item);
}