updateFirstWhere method

void updateFirstWhere(
  1. bool condition(
    1. T item
    ),
  2. void update(
    1. T item
    )
)

Updates the first items from current list, checked by condition and updated by replace.

Implementation

void updateFirstWhere(bool Function(T item) condition, void Function(T item) update) {
  updateWhere(condition, update, count: 1);
}