clear method
void
clear()
Clears all values in stack. Even if isRooted is set to true.
Implementation
void clear() {
_stack.clear();
_notifyParent();
}
Clears all values in stack. Even if isRooted is set to true.
void clear() {
_stack.clear();
_notifyParent();
}