borderRadius method

Widget borderRadius({
  1. double? topLeft,
  2. double? topRight,
  3. double? bottomLeft,
  4. double? bottomRight,
  5. double? verticalTop,
  6. double? verticalBottom,
  7. double? horizontalLeft,
  8. double? horizontalRight,
  9. double? all,
})

Implementation

Widget borderRadius({
  double? topLeft,
  double? topRight,
  double? bottomLeft,
  double? bottomRight,
  double? verticalTop,
  double? verticalBottom,
  double? horizontalLeft,
  double? horizontalRight,
  double? all,
}) {
  return ClipRRect(
    borderRadius: BorderRadius.only(
      topLeft: Radius.circular(
        topLeft ?? verticalTop ?? horizontalLeft ?? all ?? 0,
      ),
      topRight: Radius.circular(
        topRight ?? verticalTop ?? horizontalRight ?? all ?? 0,
      ),
      bottomLeft: Radius.circular(
        bottomLeft ?? verticalBottom ?? horizontalLeft ?? all ?? 0,
      ),
      bottomRight: Radius.circular(
        bottomRight ?? verticalBottom ?? horizontalRight ?? all ?? 0,
      ),
    ),
    child: this,
  );
}