IconThemeData constructor Null safety

const IconThemeData(
  1. {Color? color,
  2. double? opacity,
  3. double? size}
)

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.color, double? opacity, this.size}) : _opacity = opacity;