moveTo method
Move items from one list into another list, and return these items
Implementation
Iterable<T> moveTo(List<T> other, [bool Function(T)? predicate]) {
predicate = predicate ?? (x) => true;
var i = detachItems(predicate);
other.addAll(i);
return i;
}