mouseDrop property
void Function(InputEvent)?
get
mouseDrop
Gets or sets the function to execute when the user drops the selection in the background of the Diagram at the end of a DraggingTool drag-and-drop, not onto any GraphObjects.
If this property value is a function, it is called with an InputEvent. It is called within the transaction performed by the DraggingTool. By default this property is null.
For example, if you want to prevent the user from dropping Parts into the background of the diagram:
myDiagram.mouseDrop = e => {
myDiagram.currentTool.doCancel();
}
Implementation
void Function(_i3.InputEvent)? get mouseDrop =>
(_i3.InputEvent p0) => _i4.callMethod(
_i4.getProperty(
this,
'mouseDrop',
),
r'call',
[
this,
p0,
],
);
set
mouseDrop
(void value(InputEvent)?)
Implementation
set mouseDrop(void Function(_i3.InputEvent)? value) {
_i4.setProperty(
this,
'mouseDrop',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}