addItem method

void addItem(
  1. T item
)

Method to add an item

Implementation

void addItem(T item) {
  _items.add(item);
}