containsLocalPoint method
Test whether the point
(given in local coordinates) lies within this
component. The top and the left borders of the component are inclusive,
while the bottom and the right borders are exclusive.
Implementation
@override
bool containsLocalPoint(Vector2 point) {
final radius = size.x / 2;
final dx = point.x - radius;
final dy = point.y - radius;
return dx * dx + dy * dy <= radius * radius;
}