evict method

  1. @override
Future<bool> evict({
  1. ImageCache? cache,
  2. ImageConfiguration configuration = ImageConfiguration.empty,
  3. bool includeLive = true,
})
override

Evicts an entry from the image cache.

Implementation

@override
Future<bool> evict({
  ImageCache? cache,
  ImageConfiguration configuration = ImageConfiguration.empty,
  bool includeLive = true,
}) async {
  rawImageDataMap.remove(this);

  cache ??= imageCache;
  final T key = await obtainKey(configuration);
  return cache.evict(key, includeLive: includeLive);
}