title: Flutter convert CashedNetworkImage to Base64 before displaying it
body: <p>Inside my app I am using <code>CashedNetworkImage</code> to display my images. The problem is that I need to know what image was loaded and for that I am trying to convert the image after it is loaded to <code>Base64</code> so I can compare it with another image.</p>
  <p>But I can not make the converting work...</p>
  <pre><code>child: CachedNetworkImage(
                  imageBuilder: (context, imageProvider) {
                    // 1. convert image provider to  base64 String
                    // 2. compare it to sample image
                    // 3. display the image
                  },
                  imageUrl: widget.memory.imageUrl,
                  fit: BoxFit.cover,
                  progressIndicatorBuilder:
                      (context, url, downloadProgress) =&gt; Center(
                    child: CircularProgressIndicator(
                        value: downloadProgress.progress),
                  ),
                  errorWidget: (context, url, error) =&gt; Icon(Icons.error),
                ),
  </code></pre>
  <p>I couldnt find anything on this.. Any help is appreciated. Let me know if you need more info!</p>