whereNotToIndexed method
Appends all elements not matching the given predicate
to the given
destination
.
Implementation
void whereNotToIndexed(
List<E> destination, bool Function(E element, int index) predicate) {
var index = 0;
for (var element in this) {
if (!predicate(element, index++)) {
destination.add(element);
}
}
}