push method

dynamic push(
  1. T item
)

Adds an element to this queue.

Implementation

push(T item) {
  data.add(item);
  _up(length++);
}