W3cubDocs

/Dart 2

removeLast method

E removeLast ()
override

Removes and returns the last element of the queue.

The queue must not be empty when this method is called.

Implementation

E removeLast() {
  _DoubleLinkedQueueEntry<E> lastEntry = _sentinel._previousLink;
  E result = lastEntry._remove();
  _elementCount--;
  return result;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-collection/DoubleLinkedQueue/removeLast.html