addAllExcept<T> static method

List<T> addAllExcept<T>(
  1. List<T> original,
  2. List<T> addHere,
  3. bool exclude(
    1. T t
    )
)

Implementation

static List<T> addAllExcept<T>(
    List<T> original, List<T> addHere, bool Function(T t) exclude) {
  for (var element in original) {
    if (!exclude(element)) addHere.add(element);
  }
  return addHere;
}