CustomImage constructor

const CustomImage({
  1. Key? key,
  2. required String imageUrl,
  3. dynamic onTap()?,
  4. File? image,
  5. Uint8List? imageBytes,
  6. double? height,
  7. bool isBackgroundImage = true,
  8. double? width,
  9. double padding = 0,
  10. double? borderRadius = 10,
  11. Color? overlayColor = Colors.black12,
  12. Border? border,
  13. CustomFileType fileType = CustomFileType.network,
  14. BoxFit? fit = BoxFit.cover,
  15. bool showLoader = false,
})

this is the constructor of the custom image

Implementation

const CustomImage({
  super.key,
  required this.imageUrl,
  this.onTap,
  this.image,
  this.imageBytes,
  this.height,
  this.isBackgroundImage = true,
  this.width,
  this.padding = 0,
  this.borderRadius = 10,
  this.overlayColor = Colors.black12,
  this.border,
  this.fileType = CustomFileType.network,
  this.fit = BoxFit.cover,
  this.showLoader = false,
});