onMouseClick property

EventStream<MouseEvent> onMouseClick

Dispatched when a user presses and releases the main button of the user's pointing device over the same InteractiveObject.

For a click event to occur, it must always follow this series of events in the order of occurrence: mouseDown event, then mouseUp. The target object must be identical for both of these events; otherwise the click event does not occur. Any number of other mouse events can occur at any time between the mouseDown or mouseUp events; the click event still occurs.

Implementation

EventStream<MouseEvent> get onMouseClick =>
    InteractiveObject.mouseClickEvent.forTarget(this);