toLinkable property

bool? get toLinkable

Gets or sets whether the user may draw Links to this port. This property is used by LinkingBaseTool#isValidTo.

The default value is null, which indicates that the real value is inherited from the parent Panel, or false if there is no containing panel.

You must set this property on a GraphObject whose #portId is non-null, unless the whole Node is acting as a single port, in which case this property should be set on the Node, or unless you are disabling the "linkability" of a particular GraphObject inside a Panel whose toLinkable has been set or bound to true.

Implementation

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

Implementation

set toLinkable(_i2.bool? value) {
  _i4.setProperty(
    this,
    'toLinkable',
    value ?? _i5.undefined,
  );
}