isDisjointWith method

bool isDisjointWith(
  1. Set<Object> other
)

Returns true if this and other have no elements in common.

Example:

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

Implementation

bool isDisjointWith(Set<Object> other) => this.intersection(other).isEmpty;