W3cubDocs

/Dart 2

UnmodifiableListView<E> constructor

UnmodifiableListView<E>(Iterable<E> source)

Creates an unmodifiable list backed by source.

The source of the elements may be a List or any Iterable with efficient Iterable.length and Iterable.elementAt.

Implementation

UnmodifiableListView(Iterable<E> source) : _source = source;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-collection/UnmodifiableListView/UnmodifiableListView.html