center property

IntOffset get center

The center point of the rectangle.

Implementation

IntOffset get center => IntOffset(
  left + (width ~/ _centerDivisor),
  top + (height ~/ _centerDivisor),
);