CachedNetworkImageCDN constructor
CachedNetworkImageCDN(
- String imageUrl, {
- Key? key,
- ImageCDNFormat resizerFormat = ImageCDNFormat.webp,
- ImageCDNFit resizerFit = ImageCDNFit.contain,
- int? resizerWidth,
- int? resizerHeight,
- Map<
String, String> ? httpHeaders, - ImageWidgetBuilder? imageBuilder,
- PlaceholderWidgetBuilder? placeholder,
- ProgressIndicatorBuilder? progressIndicatorBuilder,
- LoadingErrorWidgetBuilder? errorWidget,
- Duration? fadeOutDuration = const Duration(milliseconds: 1000),
- Curve fadeOutCurve = Curves.easeOut,
- Duration fadeInDuration = const Duration(milliseconds: 500),
- Curve fadeInCurve = Curves.easeIn,
- double? width,
- double? height,
- BoxFit? fit,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- BaseCacheManager? cacheManager,
- bool useOldImageOnUrlChange = false,
- Color? color,
- FilterQuality filterQuality = FilterQuality.low,
- BlendMode? colorBlendMode,
- Duration? placeholderFadeInDuration,
- int? memCacheWidth,
- int? memCacheHeight,
- String? cacheKey,
- int? maxWidthDiskCache,
- int? maxHeightDiskCache,
- 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,
));