asNullableIcon method

Icon? asNullableIcon({
  1. double? size,
  2. double? fill,
  3. double? weight,
  4. double? grade,
  5. double? opticalSize,
  6. Color? color,
  7. List<Shadow>? shadows,
  8. String? semanticLabel,
  9. TextDirection? textDirection,
  10. bool? applyTextScaling,
})

Implementation

Icon? asNullableIcon({
  double? size,
  double? fill,
  double? weight,
  double? grade,
  double? opticalSize,
  Color? color,
  List<Shadow>? shadows,
  String? semanticLabel,
  TextDirection? textDirection,
  bool? applyTextScaling,
}) =>
    this != null
        ? Icon(
            this,
            size: size,
            fill: fill,
            weight: weight,
            grade: grade,
            opticalSize: opticalSize,
            color: color,
            shadows: shadows,
            semanticLabel: semanticLabel,
            textDirection: textDirection,
            applyTextScaling: applyTextScaling,
          )
        : null;