dragsLink property
bool
get
dragsLink
Gets or sets whether the user can drag a single Link, disconnecting it from its connected nodes and possibly connecting it to valid ports when the link is dropped. The default value is false. Setting this property does not raise any events.
In order to avoid too many cases of having both ends of a dragged Link connect to the same node (if allowed), it is commonplace to decrease the LinkingBaseTool#portGravity to a smaller value such as 10 or 20.
This property is a convenience getter/setter, and sets a value on #dragOptions.
Implementation
_i2.bool get dragsLink => _i4.getProperty(
this,
'dragsLink',
);
set
dragsLink
(bool value)
Implementation
set dragsLink(_i2.bool value) {
_i4.setProperty(
this,
'dragsLink',
value,
);
}