addAllWhere method

void addAllWhere(
  1. Iterable<T> iterable,
  2. bool condition(
    1. T t,
    2. List<T> currList
    )
)

Appends to the end of this list, the objects of iterable that satisfy condition. The list must be growable.

Notifies listeners afterwards.

Implementation

void addAllWhere(Iterable<T> iterable, bool Function(T t, List<T> currList) condition) => update(() => _list.addAll(iterable.where((t) => condition(t, list))));