linkConnected property
Gets or sets the function that is called after a Link has been connected with this Node. It is typically used to modify the appearance of the node. The first argument will be this Node. The second argument will be a Link that is now connected with this node. The third argument will be a GraphObject port indicating which port the link was connected with.
If the value is a function, that function must not modify what this Node is connected with. The Link has already been added -- trying to remove it or another link may produce undefined behavior. However, the other end of the link may not yet have been connected with a node (and might never be), so you cannot depend on looking at what the link connects with.
The default value is null -- no function is called.
Implementation
void Function(
_i3.Node,
_i3.Link,
_i3.GraphObject,
)? get linkConnected => (
_i3.Node p0,
_i3.Link p1,
_i3.GraphObject p2,
) =>
_i4.callMethod(
_i4.getProperty(
this,
'linkConnected',
),
r'call',
[
this,
p0,
p1,
p2,
],
);
Implementation
set linkConnected(
void Function(
_i3.Node,
_i3.Link,
_i3.GraphObject,
)? value) {
_i4.setProperty(
this,
'linkConnected',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}