CustomImageView constructor
const
CustomImageView({
- Key? key,
- String? imagePath,
- double? height,
- double? width,
- Color? color,
- BoxFit? fit,
- Alignment? alignment,
- VoidCallback? onTap,
- BorderRadius? radius,
- EdgeInsetsGeometry? margin,
- BoxBorder? border,
- BlendMode? colorBlendMode,
- bool usePlaceholder = true,
- Duration fadeInDuration = const Duration(milliseconds: 300),
- Duration fadeOutDuration = const Duration(milliseconds: 300),
- 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,
});