mouseEnter property

void Function(InputEvent)? get mouseEnter

Gets or sets the function to execute when the mouse (pointer) enters the Diagram. (When the browser's mouseEnter event fires on the Diagram canvas.)

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

Implementation

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