roundedCornerShape method

Modifier roundedCornerShape(
  1. double radius
)

Wrap the widget into a ClipRRect with a rounded rectangle shape using the specified radius for the border radius.

Implementation

Modifier roundedCornerShape(double radius) {
  return Modifier._([
    ..._modifiers,
        (widget) {
      return ClipRRect(
        borderRadius: BorderRadius.circular(radius),
        child: widget,
      );
    }
  ]);
}