toUnmodifiable method

List<E> toUnmodifiable()

Returns an unmodifiable List view of this collection.

Implementation

List<E> toUnmodifiable() => collection.UnmodifiableListView(this);