setAll method Null safety
Overwrites elements with the objects of
The elements of
iterable are written into this list,
starting at position
This operation does not increase the length of the list.
index must be non-negative and no greater than length.
iterable must not have more elements than what can fit from
iterable is based on this list, its values may change during the
final list = <String>['a', 'b', 'c', 'd']; list.setAll(1, ['bee', 'sea']); print(list); // [a, bee, sea, d]
void setAll(int index, Iterable<E> iterable);