removeWhere method
Remove all elements that match the test
condition; returns the removed
elements.
Implementation
Iterable<E> removeWhere(bool Function(E element) test) {
return where(test).toList(growable: false)..forEach(remove);
}
Remove all elements that match the test
condition; returns the removed
elements.
Iterable<E> removeWhere(bool Function(E element) test) {
return where(test).toList(growable: false)..forEach(remove);
}