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.

When this property is true, changing the Model or any data object 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, do not blindly set this property to false. You should set this back to the value it had before you set it to true. For more permanent disabling of the UndoManager, set UndoManager#isEnabled to false.

This property is also set when setting Diagram#skipsUndoManager. Setting this property does not raise a ChangedEvent.

Implementation

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

Implementation

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