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;