QueueList<E> constructor Null safety

QueueList<E>(
  1. [int? initialCapacity]
)

Creates an empty queue.

If initialCapacity is given, prepare the queue for at least that many elements.

Implementation

QueueList([int? initialCapacity])
    : this._init(_computeInitialCapacity(initialCapacity));