center property
Point
get
center
Center point of the bounding box in absolute pixel coordinates.
Implementation
Point get center => Point(
(topLeft.x + topRight.x + bottomRight.x + bottomLeft.x) / 4,
(topLeft.y + topRight.y + bottomRight.y + bottomLeft.y) / 4,
);