CustomImage constructor

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

this is the constructor of the custom image

Implementation

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