pushUnique method
void
pushUnique(
- T value
Push given value
to end of stack.
Previous occurrence of value
is removed from stack.
Implementation
void pushUnique(T value) {
_stack.remove(value);
_stack.add(value);
_notifyParent();
}