isModified property

bool get isModified

Gets or sets whether this Diagram's state has been modified. Setting this property does not notify about any changed event, but it does raise the "Modified" DiagramEvent, although perhaps not immediately.

Returns true if the Diagram has been changed, if the #undoManager has recorded any changes, or if an undo has been performed without a corresponding redo.

Replacing the #model automatically sets this property to false after the initial layout has completed. The "Modified" DiagramEvent is also raised when an undo or a redo has finished. A "Modified" DiagramEvent listener must not modify this Diagram or its Model.

Implementation

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

Implementation

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