verticalCenter property

double get verticalCenter

The y-coordinate of the vertical center of this rectangle.

Implementation

double get verticalCenter => top + height / 2;