Rectangle constructor

const Rectangle(
  1. double x,
  2. double y,
  3. double width,
  4. double height,
)

Creates a rectangle with the given position and dimensions

Implementation

const Rectangle(this.x, this.y, this.width, this.height);