CkImage constructor
const
CkImage({
- required String src,
- Color? imageColor,
- double? height,
- double borderRadius = 0,
- double? width,
- double? size,
- BoxFit fill = BoxFit.cover,
- String? defaultImage,
- bool enableGrayscale = false,
- Key? key,
- BorderRadius? borderRadiusCustom,
- bool enableAspectRatio = false,
- double borderWidth = 0,
- double borderOffset = 0,
- 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,
});