addAllWhere method

void addAllWhere(
  1. Iterable<E> iterable,
  2. bool condition(
    1. E t,
    2. List<E> 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<E> iterable, bool Function(E t, List<E> currList) condition) => update(() => _list.addAll(iterable.where((t) => condition(t, list))));