center property

  1. @override
Vector2 get center
override

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 => _center;