Icon constructor

const Icon(
  1. IconData? icon, {
  2. Key? key,
  3. double? size,
  4. double? fill,
  5. double? weight,
  6. double? grade,
  7. double? opticalSize,
  8. Color? color,
  9. List<Shadow>? shadows,
  10. String? semanticLabel,
  11. TextDirection? textDirection,
})

Creates an icon.

Implementation

const Icon(this.icon,
    {super.key,
    this.size,
    this.fill,
    this.weight,
    this.grade,
    this.opticalSize,
    this.color,
    this.shadows,
    this.semanticLabel,
    this.textDirection})
    : assert(fill == null || (0.0 <= fill && fill <= 1.0)),
      assert(weight == null || (0.0 < weight)),
      assert(opticalSize == null || (0.0 < opticalSize));