toDecoration method
Implementation
Decoration? toDecoration({
Color? decorationColor,
}) {
var radius = getBorderRadius();
var color = decorationColor ?? backgroundColor;
var boxShadow = _generateBoxShadow();
var gradient = _generateGradient();
var image = _generateBackgroundImage();
return BoxDecoration(
borderRadius: radius,
image: image,
color: color,
gradient: gradient,
boxShadow: boxShadow,
);
}