boxDecorationRoundedWithShadow function
rounded box decoration with shadow
Implementation
Decoration boxDecorationRoundedWithShadow(
int radiusAll, {
Color backgroundColor = whiteColor,
Color? shadowColor,
double? blurRadius,
double? spreadRadius,
Offset offset = const Offset(0.0, 0.0),
LinearGradient? gradient,
}) {
return BoxDecoration(
boxShadow: defaultBoxShadow(
shadowColor: shadowColor ?? shadowColorGlobal,
blurRadius: blurRadius ?? defaultBlurRadius,
spreadRadius: spreadRadius ?? defaultSpreadRadius,
offset: offset,
),
color: backgroundColor,
gradient: gradient,
borderRadius: radius(radiusAll.toDouble()),
);
}