EcpCachedNetImage constructor

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

Implementation

EcpCachedNetImage({
  super.key,
  required String? imageUrl,
  Map<String, String>? httpHeaders,
  BaseCacheManager? cacheManager,
  HttpClient? client,
  this.supportPreview = false,
  super.imageBuilder,
  super.placeholder,
  super.progressIndicatorBuilder,
  super.errorWidget,
  super.fadeOutDuration = const Duration(milliseconds: 1000),
  super.fadeOutCurve = Curves.easeOut,
  super.fadeInDuration = const Duration(milliseconds: 500),
  super.fadeInCurve = Curves.easeIn,
  super.width,
  super.height,
  super.fit,
  super.alignment = Alignment.center,
  super.repeat = ImageRepeat.noRepeat,
  super.matchTextDirection = false,
  super.useOldImageOnUrlChange = false,
  super.color,
  super.filterQuality = FilterQuality.low,
  super.colorBlendMode,
  super.placeholderFadeInDuration,
  super.memCacheWidth,
  super.memCacheHeight,
  super.cacheKey,
  super.maxWidthDiskCache,
  super.maxHeightDiskCache,
  super.imageRenderMethodForWeb,
}) : super(
        imageUrl: imageUrl ?? "",
        httpHeaders: httpHeaders ?? NetConfig.instance.pureStringHeaders,
        cacheManager:
            cacheManager ?? EcpCachedManager(client: client ?? _httpClient),
      );