JsonIcon constructor
JsonIcon(})
Implementation
JsonIcon(
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: JsonIconBuilderModel.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: () => JsonIconBuilder(
args: JsonIconBuilderModel.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: JsonIconBuilder.kType,
);