opaque property

bool opaque
final

Whether this widget should prevent other MouseRegions visually behind it from detecting the pointer, thus affecting how their onHover, onEnter, and onExit behave.

If opaque is true, this widget will absorb the mouse pointer and prevent this widget's siblings (or any other widgets that are not ancestors or descendants of this widget) from detecting the mouse pointer even when the pointer is within their areas.

If opaque is false, this object will not affect how MouseRegions behind it behave, which will detect the mouse pointer as long as the pointer is within their areas.

This defaults to true.

Implementation

final bool opaque