portId property

String get portId

Gets or sets an identifier for an object acting as a port on a Node. The default value is null -- this object is not a port.

A value that is the empty string is used by convention to mean the primary (and usually only) port of the node.

If a Node has no named ports, then the Node itself is the sole port.

Note: the only kind of model that can save port information, i.e. portIds that are not an empty string, for links is a GraphLinksModel whose GraphLinksModel#linkFromPortIdProperty and GraphLinksModel#linkToPortIdProperty have been set to name properties on the link data objects.

The value should be unique within the Node. You must not modify this property once this GraphObject is in the visual tree of a Node.

See the Introduction page on ports for usage information and examples.

Implementation

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

Implementation

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