withRoundedCorners method

  1. @Deprecated('Do not use this.')
Container withRoundedCorners({
  1. Color backgroundColor = whiteColor,
  2. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  3. LinearGradient? gradient,
  4. BoxBorder? border,
  5. List<BoxShadow>? boxShadow,
  6. DecorationImage? decorationImage,
  7. BoxShape boxShape = BoxShape.rectangle,
})

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