layerName property

String get layerName

Gets or sets the layer name for this part. The initial value is an empty string, which is the name of the default layer. The value of this property determines the value of #layer.

If this part is not yet in a Diagram, this value is used by Diagram#add to determine which Layer this part should go in. If no layer can be found with this name, it uses the default layer.

Changing the value of this property while it is already in a layer causes it to change layers if needed.

Implementation

_i2.String get layerName => _i4.getProperty(
      this,
      'layerName',
    );
set layerName (String value)

Implementation

set layerName(_i2.String value) {
  _i4.setProperty(
    this,
    'layerName',
    value,
  );
}