undo method

void undo()

Reverts the value on the stack to the previous value.

Implementation

void undo() {
  if (!value.canUndo) {
    return;
  }

  onUndo.notifyListeners();
}