setUndoState static method

void setUndoState({
  1. bool canUndo = false,
  2. bool canRedo = false,
})

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);
}