left property
double
left
The x coordinate of the top-left corner of the rectangle.
Implementation
double get left {
return x;
}
Sets the x coordinate of the top-left corner of the rectangle. and adjusts the width accordingly.
Implementation
set left(double value) {
width -= value - x;
x = value;
}