setUndoState static method
Set the current state of the system UndoManager. canUndo
and canRedo
control the respective "undo" and "redo" buttons of the system UndoManager.
Implementation
static void setUndoState({bool canUndo = false, bool canRedo = false}) {
_instance._setUndoState(canUndo: canUndo, canRedo: canRedo);
}