Rect constructor
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,
});
Creates a Rect with the given x
, y
, width
, and height
.
All parameters are required and must be non-null.
const Rect({
required this.x,
required this.y,
required this.width,
required this.height,
});