encodeIconThemeData static method
Encodes the given value
into a JSON representation.
{
"color": <Color>,
"opacity": <double>,
"size": <double>
}
See also:
Implementation
static Map<String, dynamic>? encodeIconThemeData(IconThemeData? value) {
Map<String, dynamic>? result;
if (value != null) {
result = <String, dynamic>{
'color': encodeColor(value.color),
'opacity': value.opacity,
'size': value.size,
};
}
return _stripNull(result);
}