mouseHold property
void Function(InputEvent)?
get
mouseHold
Gets or sets the function to execute when the user holds the mouse (pointer) stationary in the background of the Diagram while holding down a button, not over any GraphObjects. This property is used by the ToolManager.
If this property value is a function, it is called with an InputEvent. By default this property is null.
If you do provide a function that makes changes to the diagram or to its model, you should do so within a transaction -- call #startTransaction and #commitTransaction, or call #commit.
Implementation
void Function(_i3.InputEvent)? get mouseHold =>
(_i3.InputEvent p0) => _i4.callMethod(
_i4.getProperty(
this,
'mouseHold',
),
r'call',
[
this,
p0,
],
);
set
mouseHold
(void value(InputEvent)?)
Implementation
set mouseHold(void Function(_i3.InputEvent)? value) {
_i4.setProperty(
this,
'mouseHold',
value == null ? _i5.undefined : _i4.allowInterop(value),
);
}