IconThemeData constructor Null safety
Creates an icon theme data.
The opacity applies to both explicit and default icon colors. The value is clamped between 0.0 and 1.0.
Implementation
const IconThemeData({
this.size,
this.fill,
this.weight,
this.grade,
this.opticalSize,
this.color,
double? opacity,
this.shadows,
}) : _opacity = opacity,
assert(fill == null || (0.0 <= fill && fill <= 1.0)),
assert(weight == null || (0.0 < weight)),
assert(opticalSize == null || (0.0 < opticalSize));