CkImage constructor

const CkImage({
  1. required String src,
  2. Color? imageColor,
  3. double? height,
  4. double borderRadius = 0,
  5. double? width,
  6. double? size,
  7. BoxFit fill = BoxFit.cover,
  8. String? defaultImage,
  9. bool enableGrayscale = false,
  10. Key? key,
  11. BorderRadius? borderRadiusCustom,
  12. bool enableAspectRatio = false,
  13. double borderWidth = 0,
  14. double borderOffset = 0,
  15. Color borderColor = Colors.black12,
})

Implementation

const CkImage({
  required this.src,
  this.imageColor,
  this.height,
  this.borderRadius = 0,
  this.width,
  this.size,
  this.fill = BoxFit.cover,
  this.defaultImage,
  this.enableGrayscale = false,
  super.key,
  this.borderRadiusCustom,
  this.enableAspectRatio = false,
  this.borderWidth = 0,
  this.borderOffset = 0,
  this.borderColor = Colors.black12,
});