maybeEvict method

bool maybeEvict(
  1. Object key,
  2. SvgTheme oldData,
  3. SvgTheme newData
)

Evicts a single entry from the cache if the oldData and newData are incompatible.

For example, if the theme has changed the current color and the picture uses current color, evict will be called.

Implementation

bool maybeEvict(Object key, SvgTheme oldData, SvgTheme newData) {
  return evict(key);
}