containsPoint method

bool containsPoint(
  1. Offset point,
  2. Size size
)

Checks if a point is inside this shape.

Used for hit testing to determine if user interactions (clicks, hovers) are within the node's bounds.

Parameters:

  • point - The point to test (in the node's local coordinate space)
  • size - The size of the node

Returns true if the point is inside the shape, false otherwise.

Implementation

bool containsPoint(Offset point, Size size) {
  return buildPath(size).contains(point);
}