title: How to solve the error In CachedNetworkImage?
body: <p>I want to load an image to cache. So I used CachedNetworkImage for that. When a user logged in through gmail account I get the image url and show the image. But I need to keep it in cache.
  Here is my code:</p>
  
  <pre><code>new Center(
   child: new Column(
    children: &lt;Widget&gt;[
     new CircleAvatar(
      new CachedNetworkImage(
        placeholder: CircularProgressIndicator(),
        imageUrl: widget.currentUser?.profilUrl,
      ),
    ),
  ],
  ),
  )
  </code></pre>
  
  <p>I used CachedNetworkImageProvider also but same error is coming for both. The error is </p>
  
  <pre><code>type'CachedNetworkImage'is not  a  subtype  of  type  'ImageProvider&lt;dynamic&gt;'
  </code></pre>