boundsForHitTest property

Rect get boundsForHitTest

Relative bounds where the element is hit-testable.

Might be different than bounds.

Implementation

Rect get boundsForHitTest => bounds.copyWith(y: bounds.y - origin.y);