addFirst method Null safety

void addFirst(
  1. E value
)
override

Adds value at the beginning of the queue.

Implementation

void addFirst(E value) {
  _head = (_head - 1) & (_table.length - 1);
  _table[_head] = value;
  if (_head == _tail) _grow();
  _modificationCount++;
}