setAll abstract method
void setAll(Overwrites objects of this
with the objects of iterable
, starting at position index
in this list.
List<String> list = ['a', 'b', 'c']; list.setAll(1, ['bee', 'sea']); list.join(', '); // 'a, bee, sea'
This operation does not increase the length of this
.
The index
must be non-negative and no greater than length.
The iterable
must not have more elements than what can fit from index
to length.
If iterable
is based on this list, its values may change /during/ the setAll
operation.
Source
void setAll(int index, Iterable<E> iterable);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/List/setAll.html