right property

int get right

Horizontal coordinate of the right side of this rectangle

Implementation

int get right => math.max(x, x + width);