description

# ListQueue<E>.of constructor

ListQueue<E>.of(

1. 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`. Example:

    final baseQueue = ListQueue.of([1.0, 2.0, 3.0]); // A ListQueue<double>
    final numQueue = ListQueue<num>.of(baseQueue);
    print(numQueue); // {1.0, 2.0, 3.0}

## Implementation

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