UnmodifiableCollectiveQueue<E> constructor

UnmodifiableCollectiveQueue<E>(
  1. Iterable<E> elements, {
  2. bool unmodifiableElement = true,
  3. CollectiveQueueProperties<E>? properties,
})

Creates an unmodifiable queue containing the given elements.

Parameters:

  • elements: Initial elements for the queue
  • unmodifiableElement: If true, elements that are cells will be converted to their unmodifiable versions
  • properties: Optional properties to configure the queue

Implementation

UnmodifiableCollectiveQueue(Iterable<E> elements, {bool unmodifiableElement = true, CollectiveQueueProperties<E>? properties})
    : super(properties ?? CollectiveQueueProperties<E>(), unmodifiableElement: unmodifiableElement, elements: elements);