resolveSvgSource method

Future<String> resolveSvgSource()

Resolves the raw SVG source text this loader provides.

Used by renderSvgToPng to rewrite the SVG (e.g. to bake in a scale when a target size is requested) before it is compiled and decoded.

Implementation

Future<String> resolveSvgSource() {
  return prepareMessage().then(provideSvg);
}