skipsUndoManager property

bool skipsUndoManager

Gets or sets whether ChangedEvents are not recorded by the UndoManager. The initial and normal value is false. WARNING: while this property is true do not perform any changes that cause any previous transactions to become impossible to undo.

While this property is true, changing the Diagram or any GraphObject does not call UndoManager#handleChanged. Even when this property is true, transactions (such as calls to #startTransaction) and undo/redo (such as calls to CommandHandler#undo) are still delegated to the #undoManager.

You should set this to true only temporarily, and you should remember its previous value before setting this to true. When finishing the period for which you want the UndoManager to be disabled, you should set this back to the remembered value it had before it was set to true.

For more permanent disabling of the UndoManager, set UndoManager#isEnabled to false.

Setting this property also sets Model#skipsUndoManager to the same value. Setting this property does not notify about any changed event.

Implementation

_i2.bool get skipsUndoManager => _i4.getProperty(
      this,
      'skipsUndoManager',
    );
void skipsUndoManager=(bool value)

Implementation

set skipsUndoManager(_i2.bool value) {
  _i4.setProperty(
    this,
    'skipsUndoManager',
    value,
  );
}