boxDecoration method

BoxDecoration boxDecoration(
  1. Color bgColor, {
  2. Color borderColor = const Color(0XFFE1E1E1),
  3. double borderWidth = 0.5,
})

Implementation

BoxDecoration boxDecoration(Color bgColor, {Color borderColor = const Color(0XFFE1E1E1), double borderWidth = 0.5}) {
  return BoxDecoration(
      shape: BoxShape.rectangle,
      borderRadius: BorderRadius.all(Radius.circular(w)),
      border: Border.all(color: borderColor, width: borderWidth),
      color: bgColor);
}