toUnmodifiableSet method

Set<T> toUnmodifiableSet()

Creates an unmodifiable Set containing the elements of this Iterable.

Implementation

Set<T> toUnmodifiableSet() => Set.unmodifiable(this);