fillList method Null safety
Implementation
void fillList(List one, List two) {
for (int x = 0; x < one.length; x++) {
if (x >= two.length) return;
one[x] = two[x];
}
}
void fillList(List one, List two) {
for (int x = 0; x < one.length; x++) {
if (x >= two.length) return;
one[x] = two[x];
}
}