roundedSides method

BoxDecoration roundedSides({
  1. double top = 0,
  2. double right = 0,
  3. double bottom = 0,
  4. double left = 0,
})

Apply rounded corners on specific sides (left/right/top/bottom)

Implementation

BoxDecoration roundedSides({
  double top = 0,
  double right = 0,
  double bottom = 0,
  double left = 0,
}) =>
    copyWith(
      borderRadius: BorderRadius.only(
        topLeft: Radius.circular(top),
        topRight: Radius.circular(right),
        bottomLeft: Radius.circular(bottom),
        bottomRight: Radius.circular(left),
      ),
    );