IconThemeData constructor

const IconThemeData({
  1. double? size,
  2. double? fill,
  3. double? weight,
  4. double? grade,
  5. double? opticalSize,
  6. Color? color,
  7. double? opacity,
  8. List<Shadow>? shadows,
  9. bool? applyTextScaling,
})

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,
  this.applyTextScaling,
}) : _opacity = opacity,
     assert(fill == null || (0.0 <= fill && fill <= 1.0)),
     assert(weight == null || (0.0 < weight)),
     assert(opticalSize == null || (0.0 < opticalSize));