Commit 78181d82 authored by Adam Barth's avatar Adam Barth

Merge pull request #1798 from abarth/image_cache

ImageCache should be a public type
parents ecdd55e4 45c40690
...@@ -45,8 +45,8 @@ class _UrlFetcher implements ImageProvider { ...@@ -45,8 +45,8 @@ class _UrlFetcher implements ImageProvider {
const int _kDefaultSize = 1000; const int _kDefaultSize = 1000;
class _ImageCache { class ImageCache {
_ImageCache._(); ImageCache._();
final LruMap<ImageProvider, ImageResource> _cache = final LruMap<ImageProvider, ImageResource> _cache =
new LruMap<ImageProvider, ImageResource>(maximumSize: _kDefaultSize); new LruMap<ImageProvider, ImageResource>(maximumSize: _kDefaultSize);
...@@ -65,4 +65,4 @@ class _ImageCache { ...@@ -65,4 +65,4 @@ class _ImageCache {
} }
} }
final _ImageCache imageCache = new _ImageCache._(); final ImageCache imageCache = new ImageCache._();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment