linkDisconnected property
Gets or sets the function that is called after a Link has been disconnected from 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 had been connected with this node. The third argument will be a GraphObject port indicating which port the link had been connected with.
If the value is a function, that function must not modify what this Node is connected with. The Link has already been removed -- trying to add it or another link may produce undefined behavior. The other end of the link may not yet have been disconnected from 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 linkDisconnected => (
_i3.Node p0,
_i3.Link p1,
_i3.GraphObject p2,
) =>
_i4.callMethod(
_i4.getProperty(
this,
'linkDisconnected',
),
r'call',
[
this,
p0,
p1,
p2,
],
);
Implementation
set linkDisconnected(
void Function(
_i3.Node,
_i3.Link,
_i3.GraphObject,
)? value) {
_i4.setProperty(
this,
'linkDisconnected',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}