isIntersectingWith method

bool isIntersectingWith(
  1. Set<Object> other
)

Returns true if this and other have at least one element in common.

Example:

var set = {'a', 'b', 'c'};
set.isIntersectingWith({'d', 'e', 'b'}); // true
set.isIntersectingWith({'d', 'e', 'f'}); // false

Implementation

bool isIntersectingWith(Set<Object> other) =>
    this.intersection(other).isNotEmpty;