setRange method

void setRange (int start, int end, Iterable<E> iterable, [ int skipCount = 0 ])

Implementation

void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
  _checkRange(start, end, this.length);
  int length = end - start;
  if (length == 0) return;
  if (skipCount < 0) throw new ArgumentError(skipCount);
  var args = <dynamic>[start, length]
    ..addAll(iterable.skip(skipCount).take(length));
  callMethod('splice', args);
}