ListQueue<E>.of constructor Null safety

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.

Implementation

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