WrapperCachedNetworkImage constructor
const
WrapperCachedNetworkImage({
- Key? key,
- required String imageUrl,
- Map<
String, String> ? httpHeaders, - ImageWidgetBuilder? imageBuilder,
- Widget? defaultPlaceholder,
- 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 = BoxFit.cover,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- bool useOldImageOnUrlChange = false,
- Color? color,
- FilterQuality filterQuality = FilterQuality.low,
- BlendMode? colorBlendMode,
- Duration? placeholderFadeInDuration,
- int? memCacheWidth,
- int? memCacheHeight,
- String? cacheKey,
- int? maxWidthDiskCache,
- int? maxHeightDiskCache,
- bool usePlaceholder = true,
Implementation
const WrapperCachedNetworkImage({
super.key,
required this.imageUrl,
this.httpHeaders,
this.imageBuilder,
this.defaultPlaceholder,
this.placeholder,
this.progressIndicatorBuilder,
this.errorWidget,
this.fadeOutDuration = const Duration(milliseconds: 1000),
this.fadeOutCurve = Curves.easeOut,
this.fadeInDuration = const Duration(milliseconds: 500),
this.fadeInCurve = Curves.easeIn,
this.width,
this.height,
this.fit = BoxFit.cover,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.matchTextDirection = false,
this.useOldImageOnUrlChange = false,
this.color,
this.filterQuality = FilterQuality.low,
this.colorBlendMode,
this.placeholderFadeInDuration,
this.memCacheWidth,
this.memCacheHeight,
this.cacheKey,
this.maxWidthDiskCache,
this.maxHeightDiskCache,
this.usePlaceholder = true,
});