fromCircle method Null safety

Rect fromCircle(
  1. {required double x,
  2. required double y,
  3. required double radius}
)

Implementation

static Rect fromCircle({
  required double x,
  required double y,
  required double radius,
}) =>
    Rect(x - radius, y - radius, x + radius, y + radius);