add method

void add(
  1. T item
)

Adds an item to the end of this list.

This operation has constant time complexity.

Implementation

void add(T item) {
  _isDirty = true;
  _list.add(item);
}