fromString static method
Create a new manager to manage an SVG DOM created from
the XML representation in input
.
exportedIDs
specifies a list of node IDs that are to be exported.
Each time build is called, the set returned from the new instance's
ScalableImage.exportedIDs will be different than from previous
instances.
If warnF
is non-null, it will be called if the SVG asset contains
unrecognized tags and/or tag attributes. If it is null, the default
behavior is to do nothing.
Implementation
static SvgDOMManager fromString(final String input,
{List<Pattern> exportedIDs = const [], void Function(String)? warnF}) {
final warnArg = warnF ?? nullWarn;
final p = StringSvgParser(input, exportedIDs, null, warn: warnArg);
p.parse();
return SvgDOMManager._new(p.svg);
}