JsonMaterialIcon constructor

JsonMaterialIcon(
  1. dynamic icon, {
  2. Map<String, dynamic> args = const {},
  3. JsonWidgetRegistry? registry,
  4. bool? applyTextScaling,
  5. Color? color,
  6. double? fill,
  7. double? grade,
  8. double? opticalSize,
  9. String? semanticLabel,
  10. List<Shadow>? shadows,
  11. double? size,
  12. TextDirection? textDirection,
  13. double? weight,
})

Implementation

JsonMaterialIcon(
  this.icon, {
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.applyTextScaling,
  this.color,
  this.fill,
  this.grade,
  this.opticalSize,
  this.semanticLabel,
  this.shadows,
  this.size,
  this.textDirection,
  this.weight,
}) : super(
        jsonWidgetArgs: JsonMaterialIconBuilderModel.fromDynamic(
          {
            'applyTextScaling': applyTextScaling,
            'color': color,
            'fill': fill,
            'grade': grade,
            'icon': icon,
            'opticalSize': opticalSize,
            'semanticLabel': semanticLabel,
            'shadows': shadows,
            'size': size,
            'textDirection': textDirection,
            'weight': weight,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonMaterialIconBuilder(
          args: JsonMaterialIconBuilderModel.fromDynamic(
            {
              'applyTextScaling': applyTextScaling,
              'color': color,
              'fill': fill,
              'grade': grade,
              'icon': icon,
              'opticalSize': opticalSize,
              'semanticLabel': semanticLabel,
              'shadows': shadows,
              'size': size,
              'textDirection': textDirection,
              'weight': weight,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonMaterialIconBuilder.kType,
      );