toSet method

Set<T> toSet()

Convert this iterator into a Set.

Implementation

Set<T> toSet() => Set.of(toIterable());