ImageView constructor

const ImageView({
  1. Key? key,
  2. required ImageType type,
  3. required String imageSrc,
  4. BoxFit fit = BoxFit.cover,
  5. Color? imageColor,
  6. Widget? placeholder,
  7. Widget? error,
  8. double? width,
  9. double? height,
  10. EdgeInsetsGeometry? padding,
  11. EdgeInsetsGeometry? margin,
  12. Color? backgroundColor,
  13. bool isCircle = false,
  14. BorderRadius? radius,
  15. BoxBorder? border,
  16. List<BoxShadow>? boxShadows,
  17. Gradient? gradient,
  18. BoxConstraints? constraints,
  19. Rect? centerSlice,
})

Func

Implementation

const ImageView({
  super.key,
  required this.type,
  required this.imageSrc,
  this.fit = BoxFit.cover,
  this.imageColor,
  this.placeholder,
  this.error,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.backgroundColor,
  this.isCircle = false,
  this.radius,
  this.border,
  this.boxShadows,
  this.gradient,
  this.constraints,
  this.centerSlice,
});