W3cubDocs

/Dart 2

firstEntry method

DoubleLinkedQueueEntry<E> firstEntry ()

The entry object of the first element in the queue.

Each element of the queue has an associated DoubleLinkedQueueEntry. Returns the entry object corresponding to the first element of the queue.

The entry objects can also be accessed using lastEntry, and they can be iterated using DoubleLinkedQueueEntry.nextEntry() and DoubleLinkedQueueEntry.previousEntry().

Implementation

DoubleLinkedQueueEntry<E> firstEntry() {
  return _sentinel.nextEntry();
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-collection/DoubleLinkedQueue/firstEntry.html