difference method

HashSet<T> difference(
  1. HashSet<T> other
)

Returns a new set with the elements of this that are not in other.

Implementation

HashSet<T> difference(HashSet<T> other) {
  return HashSet<T>.from(_container.difference(other._container));
}