insertAll method

void insertAll(
  1. int index,
  2. Iterable<T> iterable
)

Inserts a range of elements from iterable starting at index.

Implementation

void insertAll(int index, Iterable<T> iterable) {
  if (index < 0 || index > _data.length) {
    throw RangeError.index(index, _data, 'Index out of bounds for insertion');
  }
  _data.insertAll(index, iterable);
}