radiusDecoration method

Decoration radiusDecoration({
  1. Color? color,
  2. double? topLeft,
  3. double? topRight,
  4. double? bottomLeft,
  5. double? bottomRight,
})

Implementation

Decoration radiusDecoration(
    {Color? color, double? topLeft, double? topRight, double? bottomLeft, double? bottomRight}) {
  return BoxDecoration(
    color: color,
    borderRadius: BorderRadius.only(
        topLeft: topLeft != null ? Radius.circular(topLeft) : Radius.zero,
        topRight: topRight != null ? Radius.circular(topRight) : Radius.zero,
        bottomLeft: bottomLeft != null ? Radius.circular(bottomLeft) : Radius.zero,
        bottomRight: bottomRight != null ? Radius.circular(bottomRight) : Radius.zero),
  );
}