EcpCachedNetImage constructor
EcpCachedNetImage({
- Key? key,
- required String? imageUrl,
- Map<
String, String> ? httpHeaders, - BaseCacheManager? cacheManager,
- HttpClient? client,
- bool supportPreview = false,
- 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,
- 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
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),
);