radiusOnly function

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

returns custom Radius on each side

Implementation

BorderRadius radiusOnly({
  double? topRight,
  double? topLeft,
  double? bottomRight,
  double? bottomLeft,
}) {
  return BorderRadius.only(
    topRight: radiusCircular(topRight ?? 0),
    topLeft: radiusCircular(topLeft ?? 0),
    bottomRight: radiusCircular(bottomRight ?? 0),
    bottomLeft: radiusCircular(bottomLeft ?? 0),
  );
}