right property

T get right

The x-coordinate of the right edge of the rectangle. Calculated as left + width.

Implementation

T get right => (left + width) as T;
set right (num newRight)

Sets the x-coordinate of the right edge of the rectangle.

Implementation

set right(num newRight) => left = (newRight - width) as T;