copiesKey property

bool get copiesKey

Gets or sets whether the default behavior for #copyNodeData or GraphLinksModel#copyLinkData when copying properties of a data object also copies the key property value. Set this to false in order to force a unique key generation for data copied from another Diagram, such as a Palette.

The default value is true. This property does not affect any behavior when the value of #copyNodeDataFunction has been set to a function.

Implementation

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

Implementation

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