Copies the objects of iterable
, skipping skipCount
objects first, into
the range start
, inclusive, to end
, exclusive, of the list at path
.
Source
void setRange(String path, int start, int end, Iterable iterable,
[int skipCount = 0]) {
int numToReplace = end - start;
jsElement.callMethod(
'splice',
[path, start, numToReplace]
..addAll(iterable
.skip(skipCount)
.take(numToReplace)
.map((element) => convertToJs(element))));
}