only static method

BorderRadius only({
  1. double topLeft = 0,
  2. double topRight = 0,
  3. double bottomLeft = 0,
  4. double bottomRight = 0,
})

Custom border radius

Implementation

static BorderRadius only({
  double topLeft = 0,
  double topRight = 0,
  double bottomLeft = 0,
  double bottomRight = 0,
}) {
  return BorderRadius.only(
    topLeft: Radius.circular(ScreenUtil.instance.radius(topLeft)),
    topRight: Radius.circular(ScreenUtil.instance.radius(topRight)),
    bottomLeft: Radius.circular(ScreenUtil.instance.radius(bottomLeft)),
    bottomRight: Radius.circular(ScreenUtil.instance.radius(bottomRight)),
  );
}