top property

double top

The y coordinate of the top-left corner of the rectangle.

Implementation

double get top {
  return y;
}
void top=(double value)

Sets the y coordinate of the top-left corner of the rectangle.

Implementation

set top(double value) {
  height -= value - y;
  y = value;
}