Reverts the value on the stack to the previous value.
void undo() { if (!value.canUndo) { return; } onUndo.notifyListeners(); }