containsAny method
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) => this.any(other.contains);