downloadImage method

Future<Uint8List> downloadImage()

Public method to coordinate the image download process.

Implementation

Future<Uint8List> downloadImage() async {
  try {
    return await _fetchImageData();
  } catch (e) {
    // You can add additional logging or error handling here
    rethrow;
  }
}