WrapperCachedNetworkImage constructor

const WrapperCachedNetworkImage({
  1. Key? key,
  2. required String imageUrl,
  3. Map<String, String>? httpHeaders,
  4. ImageWidgetBuilder? imageBuilder,
  5. Widget? defaultPlaceholder,
  6. PlaceholderWidgetBuilder? placeholder,
  7. ProgressIndicatorBuilder? progressIndicatorBuilder,
  8. LoadingErrorWidgetBuilder? errorWidget,
  9. Duration fadeOutDuration = const Duration(milliseconds: 1000),
  10. Curve fadeOutCurve = Curves.easeOut,
  11. Duration fadeInDuration = const Duration(milliseconds: 500),
  12. Curve fadeInCurve = Curves.easeIn,
  13. double? width,
  14. double? height,
  15. BoxFit? fit = BoxFit.cover,
  16. Alignment alignment = Alignment.center,
  17. ImageRepeat repeat = ImageRepeat.noRepeat,
  18. bool matchTextDirection = false,
  19. bool useOldImageOnUrlChange = false,
  20. Color? color,
  21. FilterQuality filterQuality = FilterQuality.low,
  22. BlendMode? colorBlendMode,
  23. Duration? placeholderFadeInDuration,
  24. int? memCacheWidth,
  25. int? memCacheHeight,
  26. String? cacheKey,
  27. int? maxWidthDiskCache,
  28. int? maxHeightDiskCache,
  29. 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,
});