theme property
SvgTheme
theme
The default theme used when parsing SVG elements.
Implementation
SvgTheme get theme => _theme;
Sets the _theme
to theme.
A theme is used when parsing SVG elements. Changing the theme rebuilds a decoder using decoderBuilder and the new theme. This will make the decoded SVG picture use properties from the new theme.
Implementation
set theme(SvgTheme value) {
if (_theme == value) {
return;
}
if (_lastKey != null) {
cache.maybeEvict(_lastKey!, _theme, value);
_lastKey = null;
}
decoder = decoderBuilder(value);
_theme = value;
}