Property

center

The offset to the point halfway between the left and right and the top and bottom edges of this rectangle.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Source set: Common

Added in 1.11.0-rc01

val RoundRect.center: Offset

The offset to the point halfway between the left and right and the top and bottom edges of this rectangle.

Source set: Common

Added in 1.11.0-rc01

val Size.center: Offset

Returns the Offset of the center of the rect from the point of [0, 0] with this Size.