removeAt method

  1. @override
E removeAt(
  1. int index
)
override

Removes the object at position index from this list.

This method reduces the length of this by one and moves all later objects down by one position.

Returns the removed object.

The index must be in the range 0 ≤ index < length.

Implementation

@override
E removeAt(int index) {
  assert(!isDisposed);
  var removed = _list.removeAt(index);
  _dirty = true;
  if (emitDetailedChanges)
    _changes.add(ListModification.remove(index, removed));
  return removed;
}