push method

void push(
  1. T item
)

Adding element to Stack

Implementation

void push(T item) {
    _Node oldFirst = first;
    first = _Node(item, next: oldFirst);
    _items++;
  }