containsAny method

bool containsAny(
  1. Iterable<E> collection
)

Checks if any elements in the specified collection are contained in this collection.

Implementation

bool containsAny(Iterable<E> collection) {
  for (var element in collection) {
    if (contains(element)) return true;
  }
  return false;
}