isEnabled property

bool get isEnabled

Gets or sets whether this UndoManager records any changes. The default value is false -- you need to set this to true if you want the user to be able to undo or redo.

You can temporarily turn off recording by setting Diagram#skipsUndoManager and Model#skipsUndoManager to true.

Implementation

_i2.bool get isEnabled => _i4.getProperty(
      this,
      'isEnabled',
    );
set isEnabled (bool value)

Implementation

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