Returns a new HashSet with all distinct elements of this collection.
HashSet<E> toHashSet() => HashSet.from(this);