push method

void push(
  1. T item
)

push an item onto th stack.

Implementation

void push(T item) {
  _stack.addFirst(item);
}