clear method

void clear()
override

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

The list must be growable.

Implementation

void clear() {
  var len = length;
  if (len == 0) return;
  _releaseItems(0, len);
  _base.clear();
  _table._onRowsOrColumnsRemoved(this, 0, len);
}