actionCancel property

(void Function(InputEvent, GraphObject)?) actionCancel

Gets or sets the function to execute when the ActionTool is cancelled and 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 actionCancel => (
      _i3.InputEvent p0,
      _i3.GraphObject p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'actionCancel',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
void actionCancel=(void value(InputEvent, GraphObject)?)

Implementation

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