addFirst method Null safety

void addFirst (
  1. E value
)

Adds value at the beginning of the queue.

Implementation

void addFirst(E value);