We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08a7c0a + ab478da commit 97fb1e2Copy full SHA for 97fb1e2
lib/src/firebase_image.dart
@@ -54,6 +54,12 @@ class FirebaseImage extends ImageProvider<FirebaseImage> {
54
return _fetchImage();
55
}
56
57
+ /// Pre-caches an image
58
+ Future<void> preCache() async {
59
+ if (shouldCache == false) throw "Caching must be enabled to pre-cache an image.";
60
+ await _fetchImage();
61
+ }
62
+
63
static String _getBucket(String location) {
64
final uri = Uri.parse(location);
65
return '${uri.scheme}://${uri.authority}';
0 commit comments