updateWhere method
Implementation
List<T> updateWhere(bool predicate(T check), dynamic mutate(T input)) {
return this.notNull().mapIndexed((T item, idx) {
if (!predicate(item)) {
return item;
} else {
final res = mutate(item);
return res is T ? res : item;
}
});
}