toUnmodifiable method

Set<E> toUnmodifiable()

Returns an unmodifiable List view of this collection.

Implementation

Set<E> toUnmodifiable() => UnmodifiableSetView(this);