UnmodifiableCollectiveList<E> constructor

UnmodifiableCollectiveList<E>(
  1. Iterable<E> elements, {
  2. bool unmodifiableElement = true,
  3. 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);