radiusDecoration method
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),
);
}