setList<T> function
Implementation
void setList<T>(List<T> target, List<T> source) {
int tlen = target.length;
int slen = source.length;
for (var i = 0; i < slen; i++) {
if (i >= tlen) {
break;
}
target[i] = source[i];
}
}