update method

void update(
  1. Iterable<T> updateFn(
    1. Iterable<T> value
    )
)

Derives a new list from the current one and always notifies listeners.

Unlike value, no equality check is performed.

Implementation

void update(Iterable<T> Function(Iterable<T> value) updateFn) {
  _value = List.unmodifiable(updateFn(_value));
  notifyListeners();
}