clear method

void clear()

Removes all objects from this list; the length of the list becomes zero.

Implementation

void clear() {
  _items.clear();
}