Implementation
List<BoxShadow>? get shadows {
return isShadow
? [
BoxShadow(
color: shadowColor ?? Colors.black12,
blurRadius: shadowBlurRadius,
offset: isOverlayShadow
? Offset.zero
: Offset(-shadowStart, -shadowTop),
blurStyle: shadowBlurStyle,
spreadRadius: shadowSpreadRadius,
),
if (!isOverlayShadow)
BoxShadow(
color: shadowColor ?? Colors.black12,
blurRadius: shadowBlurRadius,
offset: Offset(shadowEnd, shadowBottom),
blurStyle: shadowBlurStyle,
spreadRadius: shadowSpreadRadius,
),
]
: null;
}