onMouseRollOut property Null safety

EventStream<MouseEvent> onMouseRollOut

Dispatched when the user moves a pointing device away from an InteractiveObject instance.

The event target is the object previously under the pointing device or a parent of that object. The rollOut events are dispatched consecutively up the parent chain of the object.

The purpose of the rollOut event is to simplify the coding of rollover behaviors for display object containers with children. When the mouse leaves the area of a display object or the area of any of its children to go to an object that is not one of its children, the display object dispatches the rollOut event. This is different behavior than that of the onMouseOut event, which is dispatched each time the mouse leaves the area of any child object of the display object container, even if the mouse remains over another child object of the display object container.

Implementation

EventStream<MouseEvent> get onMouseRollOut =>
    InteractiveObject.mouseRollOutEvent.forTarget(this);