actionUp property

(void Function(InputEvent, GraphObject)?) actionUp

Gets or sets the function to execute on a mouse-up 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. If you do provide a function that makes changes to the diagram or to its model, you should do so within a transaction -- call Diagram#startTransaction and Diagram#commitTransaction.

Implementation

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

Implementation

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