CachedImage constructor

const CachedImage({
  1. required String imageUrl,
  2. required double width,
  3. required double height,
  4. bool startLoadingOnlyWhenVisible = false,
  5. BoxFit? fit,
  6. String? assetErrorImage,
  7. Duration? fadeInDuration,
  8. Widget? customLoadingProgressIndicator,
  9. bool showCircularProgressIndicator = true,
  10. Widget? errorWidget,
  11. required String uniqueId,
  12. Key? key,
})

Implementation

const CachedImage({
  required this.imageUrl,
  required this.width,
  required this.height,
  this.startLoadingOnlyWhenVisible = false,
  this.fit,
  this.assetErrorImage,
  this.fadeInDuration,
  this.customLoadingProgressIndicator,
  this.showCircularProgressIndicator = true,
  this.errorWidget,
  required this.uniqueId,
  Key? key,
}) : super(key: key);