Rect.fromSize constructor
Creates a new rectangle of width
and height
with a default origin.
If either width
or height
is negative, they are clamped to zero.
Implementation
@literal
const Rect.fromSize(
int width,
int height,
) : this.fromLTWH(0, 0, width, height);