ImageWidget constructor

const ImageWidget(
  1. String source, {
  2. Key? key,
  3. BoxFit fit = BoxFit.cover,
  4. double? width,
  5. double? height,
  6. bool usePlaceHolder = true,
  7. Color? color,
  8. double? borderRadius,
  9. String? package,
  10. int? cacheWidth,
  11. int? cacheHeight,
  12. double aspectRatio = 2.0,
  13. bool useFadeInAnimation = true,
  14. Widget? errorWidget,
})

Implementation

const ImageWidget(
  this.source, {
  Key? key,
  this.fit = BoxFit.cover,
  this.width,
  this.height,
  this.usePlaceHolder = true,
  this.color,
  this.borderRadius,
  this.package,
  this.cacheWidth,
  this.cacheHeight,
  this.aspectRatio = 2.0,
  this.useFadeInAnimation = true,
  this.errorWidget,
}) : super(key: key);