handleUndo method

void handleUndo()

Handles the undo action.

This method calls the onUndo callback and then calls handleUpdateUI.

Implementation

void handleUndo() {
  onUndo?.call();
  handleUpdateUI();
}