set method

RectangleC set(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Implementation

RectangleC set(num x, num y, num width, num height) {
  this.x = x.toDouble();
  this.y = y.toDouble();
  this.width = width.toDouble();
  this.height = height.toDouble();
  return this;
}