YCImage constructor
const
YCImage(
- String? imagePath, {
- Key? key,
- String? placeholderImage,
- String? errorImage,
- BoxFit? imageBoxFit,
- int? imageLoadType,
- bool? isClipOval,
- double? imageRadius,
- ImageProvider<
Object> ? imageProvider, - double? width,
- double? height,
- double? margin,
- double? marginLeft,
- double? marginTop,
- double? marginRight,
- double? marginBottom,
- double? padding,
- double? paddingLeft,
- double? paddingTop,
- double? paddingRight,
- double? paddingBottom,
- Color? backgroundColor,
- double? strokeWidth,
- Color? strokeColor,
- Color? solidColor,
- double? radius,
- bool? isCircle,
- double? leftTopRadius,
- double? rightTopRadius,
- double? leftBottomRadius,
- double? rightBottomRadius,
- Widget? childWidget,
- Alignment? alignment,
- int? gradient,
- Alignment? gradientBegin,
- Alignment? gradientEnd,
- List<
Color> ? gradientColorList, - List<
double> ? gradientColorStops, - VoidCallback? onClick,
- VoidCallback? onDoubleClick,
- VoidCallback? onLongPress,
Implementation
const YCImage(this.imagePath,
{super.key,
this.placeholderImage,
this.errorImage,
this.imageBoxFit,
this.imageLoadType,
this.isClipOval,
this.imageRadius,
this.imageProvider,
super.width,
super.height,
super.margin,
super.marginLeft,
super.marginTop,
super.marginRight,
super.marginBottom,
super.padding,
super.paddingLeft,
super.paddingTop,
super.paddingRight,
super.paddingBottom,
super.backgroundColor,
super.strokeWidth,
super.strokeColor,
super.solidColor,
super.radius,
super.isCircle,
super.leftTopRadius,
super.rightTopRadius,
super.leftBottomRadius,
super.rightBottomRadius,
super.childWidget,
super.alignment,
super.gradient,
super.gradientBegin,
super.gradientEnd,
super.gradientColorList,
super.gradientColorStops,
super.onClick,
super.onDoubleClick,
super.onLongPress});