Creates a Rectangle with the given position and dimensions.
const Rectangle(this.x, this.y, this.width, this.height);