boundsForHitTest property
Rect
get
boundsForHitTest
override
Relative bounds where the element is hit-testable.
Might be different than bounds.
Implementation
@override
Rect get boundsForHitTest {
return super.boundsForHitTest.copyWith(
y: -super.bounds.height * 2,
height: super.bounds.height * 2,
);
}