evict method

  1. @override
void evict (String asset)
override

Called in response to the ext.flutter.evict service extension.

This is used by the flutter tool during hot reload so that any images that have changed on disk get cleared from caches.

Implementation

@override
void evict(String asset) {
  super.evict(asset);
  imageCache.clear();
}