roundedBorder method

ShapeBorder roundedBorder(
  1. double radius
)

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),
  );
}