toSvgString method
Individual SVG Part, only usable with the whole Avataaar
Implementation
String toSvgString([AvataaarGraphics? graphics]) => when(
blazerShirt: (color) => Clothes.blazerShirt(color),
blazerSweater: (color) => Clothes.blazerSweater(color),
collarSweater: (color) => Clothes.collarSweater(color),
graphicShirt: (color) => Clothes.graphicShirt(
color, (graphics?.toSVGFunction() ?? (_) => '')),
hoodie: (color) => Clothes.hoodie(color),
overall: (color) => Clothes.overall(color),
shirtCrewNeck: (color) => Clothes.shirtCrewNeck(color),
shirtScoopNeck: (color) => Clothes.shirtScoopNeck(color),
shirtVNeck: (color) => Clothes.shirtVNeck(color),
);