CustomImageView constructor

CustomImageView({
  1. Key? key,
  2. String? url,
  3. String? imagePath,
  4. String? svgPath,
  5. File? file,
  6. double? height,
  7. double? width,
  8. Color? color,
  9. BoxFit? fit,
  10. Alignment? alignment,
  11. VoidCallback? onTap,
  12. BorderRadius? radius,
  13. EdgeInsetsGeometry? margin,
  14. BoxBorder? border,
  15. String placeHolder = 'assets/images/image_not_found.png',
})

a CustomImageView it can be used for showing any type of images it will shows the placeholder image if image is not found on network image

Implementation

CustomImageView({
  Key? key,
  this.url,
  this.imagePath,
  this.svgPath,
  this.file,
  this.height,
  this.width,
  this.color,
  this.fit,
  this.alignment,
  this.onTap,
  this.radius,
  this.margin,
  this.border,
  this.placeHolder = 'assets/images/image_not_found.png',
}) : super(key: key);