add method Null safety

void add(
  1. E value
)
override

Adds value at the end of the queue.

Implementation

void add(E value) {
  _sentinel._prepend(value);
  _elementCount++;
}