push method

void push(
  1. T item
)

Pushes a new item at the end of the stack and notifies change

Implementation

void push(T item) {
  _items.add(item);
  notifyListeners();
}