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
This commit is contained in:
Adam Barth 2016-02-11 22:33:21 -08:00
parent 6bb7c0ae9c
commit 45c4069070

View File

@ -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._();