push method

void push(
  1. E item
)

Pushes an element onto the top of the stack.

Implementation

void push(E item) => _list.add(item);