push method

void push(
  1. T? value
)

Push given value to end of stack.

Implementation

void push(T? value) {
  if (this.value == value) {
    return;
  }

  _stack.add(value);
  _notifyParent();
}