calcMaxRadius static method

double calcMaxRadius(
  1. Size size,
  2. Offset center
)

Implementation

static double calcMaxRadius(Size size, Offset center) {
  final w = max(center.dx, size.width - center.dx);
  final h = max(center.dy, size.height - center.dy);
  return sqrt(w * w + h * h);
}