toSvgString method

String toSvgString()

Individual SVG Part, only usable with the whole Avataaar

Implementation

String toSvgString() => when(
      noHair: (_) => Hair.noHair(),
      eyepatch: (color) => Hair.eyepatch(color),
      hat: (color) => Hair.hat(color),
      hijab: (color) => Hair.hijab(color),
      turban: (color) => Hair.turban(color),
      winterHat1: (color) => Hair.winterHat1(color),
      winterHat2: (color) => Hair.winterHat2(color),
      winterHat3: (color) => Hair.winterHat3(color),
      winterHat4: (color) => Hair.winterHat4(color),
      longHairBigHair: (color) => Hair.longHairBigHair(color),
      longHairBob: (color) => Hair.longHairBob(color),
      longHairBun: (color) => Hair.longHairBun(color),
      longHairCurly: (color) => Hair.longHairCurly(color),
      longHairCurvy: (color) => Hair.longHairCurvy(color),
      longHairDreads: (color) => Hair.longHairDreads(color),
      longHairFrida: (color) => Hair.longHairFrida(color),
      longHairFro: (color) => Hair.longHairFro(color),
      longHairFroBand: (color) => Hair.longHairFroBand(color),
      longHairNotTooLong: (color) => Hair.longHairNotTooLong(color),
      longHairShavedSides: (color) => Hair.longHairShavedSides(color),
      longHairMiaWallace: (color) => Hair.longHairMiaWallace(color),
      longHairStraight: (color) => Hair.longHairStraight(color),
      longHairStraight2: (color) => Hair.longHairStraight2(color),
      longHairStraightStrand: (color) => Hair.longHairStraightStrand(color),
      shortHairDreads01: (color) => Hair.shortHairDreads01(color),
      shortHairDreads02: (color) => Hair.shortHairDreads02(color),
      shortHairFrizzle: (color) => Hair.shortHairFrizzle(color),
      shortHairShaggyMullet: (color) => Hair.shortHairShaggyMullet(color),
      shortHairShortCurly: (color) => Hair.shortHairShortCurly(color),
      shortHairShortFlat: (color) => Hair.shortHairShortFlat(color),
      shortHairShortRound: (color) => Hair.shortHairShortRound(color),
      shortHairShortWaved: (color) => Hair.shortHairShortWaved(color),
      shortHairSides: (color) => Hair.shortHairSides(color),
      shortHairTheCaesar: (color) => Hair.shortHairTheCaesar(color),
      shortHairTheCaesarSidePart: (color) =>
          Hair.shortHairTheCaesarSidePart(color),
    );