getShadow method
Implementation
Shadow? getShadow(Map? spec) {
if (spec == null || spec.isEmpty) {
return null;
}
return Shadow(
color: parseColor(spec["color"], defaultColor: const Color(0xFF000000)),
blurRadius: parseDouble(spec["blurRadius"], defaultValue: 0.0),
offset: getOffset(spec["offset"]) ?? Offset.zero,
);
}