getNetworkImageData static method

Future<Uint8List?> getNetworkImageData(
  1. String url, {
  2. bool useCache = true,
  3. String? cacheKey,
  4. String? cacheTag,
  5. StreamController<ImageChunkEvent>? chunkEvents,
})

get network image data from cached

Implementation

static Future<Uint8List?> getNetworkImageData(
  String url, {
  bool useCache = true,
  String? cacheKey,
  String? cacheTag,
  StreamController<ImageChunkEvent>? chunkEvents,
}) async {
  return BaseExtendedNetworkImageProvider(url,
          cache: useCache, cacheKey: keyToTagMd5(url, cacheKey, cacheTag))
      .getNetworkImageData(
    chunkEvents: chunkEvents,
  );
}