Icon constructor Null safety

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}
)

Implementation

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