removeFirstWhere method
Remove the first count
items of a list thats satisfy the predicate
Implementation
List<T> removeFirstWhere(bool Function(T) predicate, [int count = 1]) {
if (count > 0) {
int c = 0;
for (int i = 0; i < length; i++) {
if (predicate(this[i])) {
if (c >= count) break;
removeAt(i);
c++;
}
}
}
return this;
}