ImageWidget constructor

ImageWidget({
  1. Key? key,
  2. required List image,
  3. Color? color,
  4. CustomFileType fileType = CustomFileType.asset,
  5. double borderRadius = 12.0,
  6. bool isBoxShadow = true,
  7. bool isDownloadIcon = false,
  8. bool isShareIcon = true,
  9. dynamic onTap()?,
  10. double? width = 30,
})

Creates an ImageWidget.

The image parameter is required and should contain a single image source.

Implementation

ImageWidget({
  super.key,
  required this.image,
  this.color,
  this.fileType = CustomFileType.asset,
  this.borderRadius = 12.0,
  this.isBoxShadow = true,
  this.isDownloadIcon = false,
  this.isShareIcon = true,
  this.onTap,
  this.width = 30,
});