SvgCacheKey constructor
const
SvgCacheKey({
- required Object keyData,
- ColorMapper? colorMapper,
- SvgTheme? theme,
Creates an instance of SvgCacheKey.
The keyData
is required for caching and should uniquely identify
the SVG content. The colorMapper
is optional and can be used
to transform colors in the SVG. The theme
is also optional
and provides context for the current color and font sizing.
Implementation
const SvgCacheKey({
required this.keyData,
this.colorMapper,
this.theme,
});