right property
The x-coordinate of the right edge of the rectangle.
Calculated as left + width
.
Implementation
T get right => (left + width) as T;
Sets the x-coordinate of the right edge of the rectangle.
Implementation
set right(num newRight) => left = (newRight - width) as T;