push method

void push(
  1. T e
)

push element in top of the stack.

Implementation

void push(T e) => _list.addLast(e);