asUnmodifiableListView method

UnmodifiableListView<T> asUnmodifiableListView()

Returns an unmodifiable view of this instance.

Implementation

UnmodifiableListView<T> asUnmodifiableListView() {
  var self = this;
  return self is UnmodifiableListView<T>
      ? self
      : UnmodifiableListView<T>(self);
}