doubleClick property

void Function(InputEvent)? get doubleClick

Gets or sets the function to execute when the user double-primary-clicks on the background of the Diagram. This typically involves a mouse-down/up/down/up in rapid succession at approximately the same position using the left (primary) mouse button. This property is used by the ClickSelectingTool when the user clicks on no object. The function is called in addition to the DiagramEvent that is raised with the name "BackgroundDoubleClicked".

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 doubleClick =>
    (_i3.InputEvent p0) => _i4.callMethod(
          _i4.getProperty(
            this,
            'doubleClick',
          ),
          r'call',
          [
            this,
            p0,
          ],
        );
set doubleClick (void value(InputEvent)?)

Implementation

set doubleClick(void Function(_i3.InputEvent)? value) {
  _i4.setProperty(
    this,
    'doubleClick',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}