fromCenter method Null safety
Implementation
static Rect fromCenter({
required double x,
required double y,
required double width,
required double height,
}) =>
Rect.fromLTWH(x - width / 2, y - height / 2, width, height);
static Rect fromCenter({
required double x,
required double y,
required double width,
required double height,
}) =>
Rect.fromLTWH(x - width / 2, y - height / 2, width, height);