CustomImageView constructor

const CustomImageView({
  1. Key? key,
  2. String? imagePath,
  3. double? height,
  4. double? width,
  5. Color? color,
  6. BoxFit? fit,
  7. Alignment? alignment,
  8. VoidCallback? onTap,
  9. BorderRadius? radius,
  10. EdgeInsetsGeometry? margin,
  11. BoxBorder? border,
  12. BlendMode? colorBlendMode,
  13. bool usePlaceholder = true,
  14. Duration fadeInDuration = const Duration(milliseconds: 300),
  15. Duration fadeOutDuration = const Duration(milliseconds: 300),
  16. Widget? errorWidget,
})

Implementation

const CustomImageView({
  super.key,
  this.imagePath,
  this.height,
  this.width,
  this.color,
  this.fit,
  this.alignment,
  this.onTap,
  this.radius,
  this.margin,
  this.border,
  this.colorBlendMode,
  this.usePlaceholder = true,
  this.fadeInDuration = const Duration(milliseconds: 300),
  this.fadeOutDuration = const Duration(milliseconds: 300),
  this.errorWidget,
});