set method
Sets all components at once.
Values are converted using num.toDouble.
Returns this instance for fluent chaining.
Implementation
X 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 as X;
}