push method Null safety

void push(
  1. T element
)

Implementation

void push(T element) {
  _stack.addLast(element);
}