Tests to see if the point is within the path. (That is, whether the point would be in the visible portion of the path if the path was used with Canvas.clipPath.)
Returns true if the point is in the path, and false otherwise.
Source
bool contains(Point position) => _contains(position.x, position.y);