toHashSet method

HashSet<E> toHashSet()

Returns a new HashSet with all distinct elements of this collection.

Implementation

HashSet<E> toHashSet() => HashSet.from(this);