containsPoint method
Test whether the point
(given in global 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 containsPoint(Vector2 point) {
final vertices = globalVertices();
return _containsPoint(point, vertices);
}