defaultCachedProviderFactory function
default ImageProviderFactory implementation of ImageType.cached
Implementation
ImageProvider defaultCachedProviderFactory(
Uri uri, ImageProviderParams params) {
return KrakenResizeImage.resizeIfNeeded(
params.cachedWidth,
params.cachedHeight,
params.objectFit,
CachedNetworkImage(uri.toString(),
contextId: (params as CachedNetworkImageProviderParams).contextId)
);
}