pushUnique method

void pushUnique(
  1. 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();
}