SvgCacheKey constructor

const SvgCacheKey({
  1. required Object keyData,
  2. ColorMapper? colorMapper,
  3. 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,
});