undoAction method

void undoAction()

Undoes the last action performed in the painting editor.

Implementation

void undoAction() {
  if (canUndo) screenshotHistoryPosition--;
  paintCtrl.undo();
  _uiAppbarIconsStream.add(null);
  setState(() {});
  paintEditorCallbacks?.handleUndo();
}