ListQueue<E>.of constructor

ListQueue<E>.of(Iterable<E> elements)

Create a ListQueue from elements.

The elements are added to the queue, as by addLast, in the order given by elements.iterator.

Implementation

factory ListQueue.of(Iterable<E> elements) =>
    new ListQueue<E>()..addAll(elements);