Commit 45c40690 authored by Adam Barth's avatar Adam Barth

ImageCache should be a public type

We expose `imageCache`, which is an ImageCache, but previously the class
was private which means there was no documentation for the methods on
that object.

Fixes #1750
parent 6bb7c0ae
......@@ -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