isDisjointWith method

bool isDisjointWith(
  1. Set<E> other
)

Returns true if the two sets share no elements.

Example:

{1, 2}.isDisjointWith({3, 4}); // true

Implementation

bool isDisjointWith(Set<E> other) => !any(other.contains);