Skip to content

Commit

Permalink
Update cached_image_widget.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 authored Jul 31, 2024
1 parent c0293f2 commit e3763e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cached_network_image/lib/src/cached_image_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class CachedNetworkImage extends StatelessWidget {
BaseCacheManager? cacheManager,
double scale = 1,
}) async {
final effectiveCacheManager = cacheManager ?? CachedNetworkImageProvider.defaultCacheManager;
final effectiveCacheManager =
cacheManager ?? CachedNetworkImageProvider.defaultCacheManager;
await effectiveCacheManager.removeFile(cacheKey ?? url);
return CachedNetworkImageProvider(url, scale: scale).evict();
}
Expand Down

0 comments on commit e3763e1

Please sign in to comment.