clear method

void clear()

Empties it, keeping the storage; lets go of what it held.

Implementation

void clear() {
  _items.fillRange(0, _length, null);
  _length = 0;
}