union method

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

Returns a new set which contains all the elements of this set and other.

Implementation

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