CircularImageHolder constructor

const CircularImageHolder({
  1. Key? key,
  2. File? imageFile,
  3. String? imageUrl,
  4. String? assetImagePath,
  5. IconData? icon,
  6. Color? iconColor,
  7. Color? iconBackgroundColor,
  8. Color? imageBackgroundColor = Colors.white,
  9. dynamic onImageAdded()?,
  10. Function? onPressed,
  11. required double imageSize,
})

Creates a circular image with the given asset image.

If asset image is null, it create image with the given file.

If even the file is not given, it creates image with the url, fetch a default network image if url is null.

Can use an optional icon with the image

Implementation

const CircularImageHolder({
  Key? key,
  this.imageFile,
  this.imageUrl,
  this.assetImagePath,
  this.icon,
  this.iconColor,
  this.iconBackgroundColor,
  this.imageBackgroundColor = Colors.white,
  this.onImageAdded,
  this.onPressed,
  required this.imageSize,
}) : super(key: key);