ObsList<E>.unmodifiable constructor
- Iterable elements
Creates an unmodifiable list containing all the provided elements.
The Iterator of elements provides their order.
An unmodifiable list cannot have its length or elements changed.
If the elements are themselves immutable, then the resulting list
is also immutable.
Implementation
factory ObsList.unmodifiable(Iterable elements) =>
ObsList(List<E>.unmodifiable(elements));