boundsForHitTest property
Relative bounds where the element is hit-testable.
Might be different than bounds.
Implementation
@override
core.Rect get boundsForHitTest => switch (textAnchor) {
.center => bounds.copyWith(x: bounds.x - bounds.width / 2),
.end => bounds.copyWith(x: bounds.x - bounds.width),
_ => bounds,
};