addLast method Null safety

void addLast(
  1. E value
)
override

Adds value at the end of the queue.

Implementation

void addLast(E value) {
  _sentinel._prepend(value, this);
  _elementCount++;
}