only static method

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

Implementation

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