push method
void
push(
- T item
Pushes a new item
at the end of the stack and notifies change
Implementation
void push(T item) {
_items.add(item);
notifyListeners();
}
Pushes a new item
at the end of the stack and notifies change
void push(T item) {
_items.add(item);
notifyListeners();
}