top property

int get top

Vertical coordinate of the top side of this rectangle

Implementation

int get top => math.min(y, y + height);