asIcon method

Icon asIcon({
  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 asIcon({
  double? size,
  double? fill,
  double? weight,
  double? grade,
  double? opticalSize,
  Color? color,
  List<Shadow>? shadows,
  String? semanticLabel,
  TextDirection? textDirection,
  bool? applyTextScaling,
}) =>
    (this ?? Icons.radio_button_off).asNullableIcon(
      size: size,
      fill: fill,
      weight: weight,
      grade: grade,
      opticalSize: opticalSize,
      color: color,
      shadows: shadows,
      semanticLabel: semanticLabel,
      textDirection: textDirection,
      applyTextScaling: applyTextScaling,
    )!;