preCache method

Future<void> preCache()

Pre-caches an image

Implementation

Future<void> preCache() async {
  if (shouldCache == false) {
    throw "Caching must be enabled to pre-cache an image.";
  }
  await _fetchImage();
}