only static method

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

Implementation

static BorderRadius only({
  double? topLeft,
  double? topRight,
  double? bottomLeft,
  double? bottomRight,
}) {
  return BorderRadius.only(
    topLeft: topLeft == null ? Radius.zero : Radius.circular(topLeft.r),
    topRight: topRight == null ? Radius.zero : Radius.circular(topRight.r),
    bottomLeft:
        bottomLeft == null ? Radius.zero : Radius.circular(bottomLeft.r),
    bottomRight:
        bottomRight == null ? Radius.zero : Radius.circular(bottomRight.r),
  );
}