getIconThemeData method

IconThemeData? getIconThemeData(
  1. Map? spec
)

Implementation

IconThemeData? getIconThemeData(Map? spec) {
  if (spec == null || spec.isEmpty) {
    return null;
  }

  final shadow = getShadow(spec["shadow"]);
  return IconThemeData(
    color: tryParseColor(spec["color"]),
    opacity: tryParseDouble(spec["opacity"]),
    size: tryParseDouble(spec["size"]),
    shadows: shadow != null ? [shadow] : null,
  );
}