center property

IntOffset get center

The center point of the rectangle.

Implementation

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