center property
Vector2
center
The offset to the point halfway between the left and right and the top and bottom edges of this rectangle.
See also Size.center
.
Implementation
vm.Vector2 get center => vm.Vector2(left + width / 2.0, top + height / 2.0);