Deque<T>.from constructor

Deque<T>.from(
  1. Iterable<T> elements
)

Creates a deque containing the elements of the given iterable.

Implementation

Deque.from(Iterable<T> elements) : _queue = ListQueue<T>.from(elements);