name property

String get name

Gets or sets the name for this object. The default value is the empty string. The name should be unique within a Panel, although if it isn't, it reduces the usefulness of methods such as Panel#findObject.

You must not modify the name of a GraphObject once it is in the visual tree of a Part.

This is frequently needed to identify a particular GraphObject in the visual tree of a Part, for example as the value of the Part#locationObjectName or Part#selectionObjectName properties.

Implementation

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

Implementation

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