ImageWidget.avatar constructor

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

Implementation

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