cacheKey method

  1. @override
SvgCacheKey cacheKey(
  1. BuildContext? context
)
override

Creates a cache key for the SVG loader.

Implementation

@override
SvgCacheKey cacheKey(BuildContext? context) {
  final SvgTheme theme = getTheme(context);
  return SvgCacheKey(
    theme: theme,
    colorMapper: colorMapper,
    keyData: _AssetByteLoaderCacheKey(
      assetName,
      packageName,
      _resolveBundle(context),
    ),
  );
}