containsAny method

bool containsAny(
  1. Iterable<E> other
)

Returns true if this contains at least one element also contained in other.

Example:

[1, 2, 3].containsAny([5, 2]); // true
[1, 2, 3].containsAny([4, 5, 6]); // false

Implementation

bool containsAny(Iterable<E> other) => any(other.contains);