roundedRectangle method
Add rounded rectangle with background color
Implementation
Widget roundedRectangle({
Color? color,
double radius = 8.0,
BoxBorder? border,
List<BoxShadow>? boxShadow,
Gradient? gradient,
}) =>
Container(
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(radius),
border: border,
boxShadow: boxShadow,
gradient: gradient,
),
child: this,
);