Queue<T>.from constructor
- Iterable<
T> elements
Creates a queue containing the elements of the given iterable. Elements are pushed in the order they appear, so the first element of the iterable will be at the front of the queue.
Implementation
Queue.from(Iterable<T> elements) : _container = Deque<T>.from(elements);