capRadius static method
Implementation
static double capRadius(double radius) {
if (radius > MAX_SUPPORTED_RADIUS) {
print(
"The radius is bigger than $MAX_SUPPORTED_RADIUS and hence we'll use that value");
return MAX_SUPPORTED_RADIUS.toDouble();
}
return radius;
}