addAllIfNotContainsWhere method

void addAllIfNotContainsWhere(
  1. bool validator(
    1. T e,
    2. T item
    ),
  2. List<T> items
)

Implementation

void addAllIfNotContainsWhere(
  bool Function(T e, T item) validator,
  List<T> items,
) {
  for (final item in items) {
    addIfNotContainsWhere((e) => validator(e, item), item);
  }
}