remove method

void remove()

Implementation

void remove() {
  element?.remove();
  stack.remove(this);
  onStackChange.add(("remove", this));
}