CachedNetworkImageCDN constructor

CachedNetworkImageCDN(
  1. String imageUrl, {
  2. Key? key,
  3. ImageCDNFormat resizerFormat = ImageCDNFormat.webp,
  4. ImageCDNFit resizerFit = ImageCDNFit.contain,
  5. int? resizerWidth,
  6. int? resizerHeight,
  7. Map<String, String>? httpHeaders,
  8. ImageWidgetBuilder? imageBuilder,
  9. PlaceholderWidgetBuilder? placeholder,
  10. ProgressIndicatorBuilder? progressIndicatorBuilder,
  11. LoadingErrorWidgetBuilder? errorWidget,
  12. Duration? fadeOutDuration = const Duration(milliseconds: 1000),
  13. Curve fadeOutCurve = Curves.easeOut,
  14. Duration fadeInDuration = const Duration(milliseconds: 500),
  15. Curve fadeInCurve = Curves.easeIn,
  16. double? width,
  17. double? height,
  18. BoxFit? fit,
  19. Alignment alignment = Alignment.center,
  20. ImageRepeat repeat = ImageRepeat.noRepeat,
  21. bool matchTextDirection = false,
  22. BaseCacheManager? cacheManager,
  23. bool useOldImageOnUrlChange = false,
  24. Color? color,
  25. FilterQuality filterQuality = FilterQuality.low,
  26. BlendMode? colorBlendMode,
  27. Duration? placeholderFadeInDuration,
  28. int? memCacheWidth,
  29. int? memCacheHeight,
  30. String? cacheKey,
  31. int? maxWidthDiskCache,
  32. int? maxHeightDiskCache,
  33. ImageRenderMethodForWeb imageRenderMethodForWeb = ImageRenderMethodForWeb.HtmlImage,
})

Implementation

CachedNetworkImageCDN(
  String imageUrl, {
  super.key,
  this.resizerFormat = ImageCDNFormat.webp,
  this.resizerFit = ImageCDNFit.contain,
  this.resizerWidth,
  this.resizerHeight,
  // CachedNetworkImage params
  super.httpHeaders,
  super.imageBuilder,
  super.placeholder,
  super.progressIndicatorBuilder,
  super.errorWidget,
  super.fadeOutDuration,
  super.fadeOutCurve,
  super.fadeInDuration,
  super.fadeInCurve,
  super.width,
  super.height,
  super.fit,
  super.alignment,
  super.repeat,
  super.matchTextDirection,
  super.cacheManager,
  super.useOldImageOnUrlChange,
  super.color,
  super.filterQuality,
  super.colorBlendMode,
  super.placeholderFadeInDuration,
  super.memCacheWidth,
  super.memCacheHeight,
  super.cacheKey,
  super.maxWidthDiskCache,
  super.maxHeightDiskCache,
  super.imageRenderMethodForWeb,
}) : super(
          imageUrl: ImageCDN.convertUrl(
        imageUrl,
        width: resizerWidth,
        height: resizerHeight,
        fit: resizerFit,
        format: resizerFormat,
      ));