addAllWhile method
Implementation
List<T?>? addAllWhile(List<T> from, bool Function(T element) test) {
var index = 0;
while (index < length) {
if (!test(from[index])) {
break;
}
add(from[index]);
index++;
}
return this;
}