centerY property

double get centerY

The y-coordinate of the center of the rectangle. Calculated as top + height / 2.

Implementation

double get centerY => top + height / 2;
set centerY (double newCenterY)

Sets the y-coordinate of the center of the rectangle.

Implementation

set centerY(double newCenterY) => top = (newCenterY - height / 2) as T;