pop method

void pop()

Pops last value from stack.

Implementation

void pop() {
  if (!canPop) {
    return;
  }

  _stack.removeLast();

  _notifyParent();
}