Rect constructor

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

Implementation

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