toUnmodifiable method

List<E> toUnmodifiable()

Returns an unmodifiable List view of this collection.

Implementation

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