removeRange method

void removeRange(
  1. int start,
  2. int end
)
override

Removes a range of elements from the list.

Removes the elements with positions greater than or equal to start and less than end, from the list. This reduces the list's length by end - start.

The provided range, given by start and end, must be valid. A range from start to end is valid if 0 ≤ startendlength. An empty range (with end == start) is valid.

The list must be growable.

Implementation

void removeRange(int start, int end) {
  _releaseItems(start, end);
  _base.removeRange(start, end);
  _updateItems(start);
  _table._onRowsOrColumnsRemoved(this, start, end - start);
}