getBoxShadow function

Map<String, dynamic> getBoxShadow(
  1. String key,
  2. Map<String, dynamic> v,
  3. dynamic value
)

Implementation

Map<String, dynamic> getBoxShadow(String key, Map<String, dynamic> v, value) {
  v.addAll({
    key: BoxShadow(
      blurStyle: BlurStyle.normal,
      blurRadius:
          value["shadow"] != null ? value["shadow"]["shadowRadius"] : 0.0,
      color: value["shadow"] != null
          ? value["shadow"]["shadowColor"]
          : Colors.transparent,
      offset: Offset(
        value["shadow"] != null ? value["shadow"]["shadowOffset"]["width"] : 0,
        value["shadow"] != null ? value["shadow"]["shadowOffset"]["height"] : 0,
      ),
    )
  });
  return v;
}