Queue.from factory constructor
Queue.from(Creates a queue containing all elements
.
The element order in the queue is as if the elements were added using addLast in the order provided by elements.iterator
.
Source
factory Queue.from(Iterable elements) = ListQueue<E>.from;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/Queue/Queue.from.html