Widget.icon constructor Null safety

const Widget.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}
)

Implementation

const factory Widget.icon(
  IconData? icon, {
  Key? key,
  double? size,
  double? fill,
  double? weight,
  double? grade,
  double? opticalSize,
  Color? color,
  List<Shadow>? shadows,
  String? semanticLabel,
  TextDirection? textDirection,
}) = Icon;