Rect constructor

const Rect({
  1. required int x,
  2. required int y,
  3. required int width,
  4. required int height,
})

Creates a Rect with the given x, y, width, and height.

All parameters are required and must be non-null.

Implementation

const Rect({
  required this.x,
  required this.y,
  required this.width,
  required this.height,
});