whereAdd method

void whereAdd(
  1. bool f(
    1. E e
    ),
  2. E value
)

Implementation

void whereAdd(bool Function(E e) f, E value) {
  if (f(value)) {
    add(value);
  }
}