center property
Vector2
get
center
inherited
The position of the center of the component's bounding rectangle in the parent's coordinates.
Implementation
Vector2 get center => positionOfAnchor(Anchor.center);
set
center
(Vector2 point)
inherited
Implementation
set center(Vector2 point) {
position += point - center;
}