CustomImageView constructor
CustomImageView({
- Key? key,
- String? url,
- String? imagePath,
- String? svgPath,
- File? file,
- double? height,
- double? width,
- Color? color,
- BoxFit? fit,
- Alignment? alignment,
- VoidCallback? onTap,
- BorderRadius? radius,
- EdgeInsetsGeometry? margin,
- BoxBorder? border,
- 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);