maybeEvict method
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);
}