isDisjointWith method
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;