CollectiveQueue<E>.unmodifiable constructor

CollectiveQueue<E>.unmodifiable(
  1. CollectiveQueue<E> bind, {
  2. bool unmodifiableElement = true,
})

Creates an unmodifiable CollectiveQueue from elements

Implementation

factory CollectiveQueue.unmodifiable(CollectiveQueue<E> bind, {bool unmodifiableElement = true}) {
  return UnmodifiableCollectiveQueue<E>.bind(bind, unmodifiableElement: unmodifiableElement);
}