void hitTest(HitTestResult result, Point position)

Check whether the given position hits this object.

If this given position hits this object, consider adding a HitTestEntry to the given hit test result.

Source

void hitTest(HitTestResult result, Point position);