fill<T> function
Implementation
void fill<T>(List<T> list, Iterable<T> values, [int start = 0, int? end]) {
if (start >= list.length) {
list.addAll(values);
return;
}
if (end == null || end > list.length) {
end = list.length;
}
list.replaceRange(start, end, values);
}