roundedBorder method
Returns a rectangular border with rounded corners specified by the given radius.
The radius parameter determines the degree of rounding applied to the corners.
Implementation
ShapeBorder roundedBorder(double radius) {
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(radius),
);
}