undoAction method
void
undoAction()
Undoes the last action performed in the painting editor.
Implementation
void undoAction() {
if (canUndo) screenshotHistoryPosition--;
_paintCtrl.undo();
_uiAppbarIconsStream.add(null);
if (isWhatsAppDesign) {
_uiPickerStream.add(null);
}
setState(() {});
paintEditorCallbacks?.handleUndo();
}