UnmodifiableCollectiveList<E> constructor
UnmodifiableCollectiveList<E> (
- Iterable<
E> elements, { - bool unmodifiableElement = true,
- CollectiveListProperties<
E> ? properties,
Creates an unmodifiable list from the given elements.
Parameters:
- elements: The elements to include in the unmodifiable list
- unmodifiableElement: Whether to also make elements unmodifiable (default true)
- properties: Optional custom properties for the list
Implementation
UnmodifiableCollectiveList(Iterable<E> elements, {bool unmodifiableElement = true, CollectiveListProperties<E>? properties})
: super(properties ?? CollectiveListProperties<E>(), unmodifiableElement: unmodifiableElement, elements: elements);