getShadow method

Shadow? getShadow(
  1. Map? spec
)

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