updateWhere method

E? updateWhere(
  1. UpdateFn<E> updateFn,
  2. Where<E> where
)

Implementation

E? updateWhere(UpdateFn<E> updateFn, Where<E> where) {
  int index = indexWhere(where);
  if (index != -1) {
    this[index] = updateFn(this[index]);
    return this[index];
  }
  return null;
}