mediaImageProvider function

ImageProvider<Object> mediaImageProvider(
  1. String url
)

The image provider for an image fetch that does not go through MediaImage (a surface's wait-for-media gate, a next-image precache): the same cache and the same mediaHttpHeaders, so the request that actually downloads carries the SDK User-Agent too.

Implementation

ImageProvider mediaImageProvider(String url) =>
    CachedNetworkImageProvider(url.trim(), headers: mediaHttpHeaders);