center property
The central point of the shape.
For some shapes (circle, rectangle) the center is well-defined and unambiguous. For some, there could be multiple definitions (triangle, polygon), in which case it is up to the component to decide what its "center" should be.
Implementation
@override
Vector2 get center => Vector2((_left + _right) / 2, (_top + _bottom) / 2);