withRoundedCorners method
Implementation
@Deprecated('Do not use this.')
Container withRoundedCorners({
Color backgroundColor = whiteColor,
BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8.0)),
LinearGradient? gradient,
BoxBorder? border,
List<BoxShadow>? boxShadow,
DecorationImage? decorationImage,
BoxShape boxShape = BoxShape.rectangle,
}) {
return Container(
decoration: boxDecorationWithRoundedCorners(
backgroundColor: backgroundColor,
borderRadius: borderRadius,
gradient: gradient,
border: border,
boxShadow: boxShadow,
decorationImage: decorationImage,
boxShape: boxShape,
),
child: this,
);
}