actionMove property

(void Function(InputEvent, GraphObject)?) actionMove

Gets or sets the function to execute on a mouse-move event when this GraphObject's #isActionable is set to true. This property is infrequently set. By default this property is null.

This functional property is only set on objects such as buttons, knobs, or sliders that want to handle all events, in conjunction with ActionTool, pre-empting the normal tool mechanisms.

The ActionTool does not conduct any transaction, so if this property has a value, the function will not be called within a transaction.

Implementation

void Function(
  _i3.InputEvent,
  _i3.GraphObject,
)? get actionMove => (
      _i3.InputEvent p0,
      _i3.GraphObject p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'actionMove',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
void actionMove=(void value(InputEvent, GraphObject)?)

Implementation

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