SuravImage constructor
const
SuravImage({
- Key? key,
- required String url,
- double width = 200,
- double height = 200,
- Alignment alignment = Alignment.center,
- 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,
- BoxFit? fit,
- 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,
- ValueChanged<
Object> ? errorListener,
Implementation
const SuravImage({
super.key,
required this.url,
this.width = 200,
this.height = 200,
this.alignment = Alignment.center,
this.httpHeaders,
this.imageBuilder,
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.fit,
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.errorListener,
});