renderIllustration method
Implementation
Future<SvgPicture> renderIllustration(
UnDrawIllustration illustration, Color _exColor) async {
String image =
await _getSvgString(illustrationMap[illustration]!, this.useMemCache);
String valueString = color.toString().split('(0x')[1].split(')')[0];
valueString = valueString.substring(2, valueString.length);
image = image.replaceAll("#6c63ff", "#" + valueString);
return SvgPicture.string(
image,
height: height,
width: width,
alignment: alignment,
colorBlendMode: colorBlendMode,
fit: fit,
semanticsLabel: semanticLabel,
);
}