On this page
DoubleLinkedQueue.from factory constructor
DoubleLinkedQueue.from(Creates a double-linked 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 DoubleLinkedQueue.from(Iterable elements) {
Queue<E> list = new DoubleLinkedQueue<E>();
for (final e in elements) {
E element = e as Object/*=E*/;
list.addLast(element);
}
return list;
}
© 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/DoubleLinkedQueue/DoubleLinkedQueue.from.html