Bounds constructor

const Bounds({
  1. double x = 0,
  2. double y = 0,
  3. required double width,
  4. required double height,
})

Creates a Bounds with position and size.

Implementation

const Bounds({
  this.x = 0,
  this.y = 0,
  required this.width,
  required this.height,
});