mouseOver property

(void Function(InputEvent, GraphObject)?) mouseOver

Gets or sets the function to execute when the user moves the mouse over this object without holding down any buttons. This property is used by the ToolManager. This property is infrequently used -- it is more common to implement #mouseEnter and #mouseLeave functions.

If this property value is a function, it is called with an InputEvent and this GraphObject. The InputEvent#targetObject provides the GraphObject that was found at the mouse point before looking up the visual tree of GraphObject#panels to get to this object. By default this property is null.

This function is called with Diagram#skipsUndoManager temporarily set to true, so that any changes to GraphObjects are not recorded in the UndoManager. You do not need to start and commit any transaction in this function. After calling this function the diagram will be updated immediately.

Implementation

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

Implementation

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