containsAny method

bool containsAny(
  1. Iterable<Object?> others
)

Returns true if any of the given others is in the list.

Implementation

bool containsAny(Iterable<Object?> others) {
  return others.any((element) => contains(element));
}