iconThemeData static method
Returns an IconThemeData from the specified map.
If the map is absent, returns null.
Otherwise (even if it has no keys), the IconThemeData is created from
the following keys: 'color([color]),
opacity(double),
size`
(double).
Implementation
static IconThemeData? iconThemeData(DataSource source, List<Object> key) {
if (!source.isMap(key)) {
return null;
}
return IconThemeData(
color: color(source, [...key, 'color']),
opacity: source.v<double>([...key, 'opacity']),
size: source.v<double>([...key, 'size']),
);
}