ListExtension<T> extension

An extension for List.

on

Methods

replaceFirstWhere(bool condition(T item), T replace(T item)) → void
Replaces the first items from current list, checked by condition and replaced by replace.
replaceWhere(bool condition(T item), T replace(T item), {int count = -1}) → void
Replaces items from current list, checked by condition and replaced by replace.
updateFirstWhere(bool condition(T item), void update(T item)) → void
Updates the first items from current list, checked by condition and updated by replace.
updateWhere(bool condition(T item), void update(T item), {int count = -1}) → void
Updates items from current list, checked by condition and updated by replace.