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 {
const int _kDefaultSize = 1000;
class _ImageCache {
_ImageCache._();
class ImageCache {
ImageCache._();
final LruMap<ImageProvider, ImageResource> _cache =
new LruMap<ImageProvider, ImageResource>(maximumSize: _kDefaultSize);
......@@ -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