YCImage constructor

const YCImage(
  1. String? imagePath, {
  2. Key? key,
  3. String? placeholderImage,
  4. String? errorImage,
  5. BoxFit? imageBoxFit,
  6. int? imageLoadType,
  7. bool? isClipOval,
  8. double? imageRadius,
  9. ImageProvider<Object>? imageProvider,
  10. double? width,
  11. double? height,
  12. double? margin,
  13. double? marginLeft,
  14. double? marginTop,
  15. double? marginRight,
  16. double? marginBottom,
  17. double? padding,
  18. double? paddingLeft,
  19. double? paddingTop,
  20. double? paddingRight,
  21. double? paddingBottom,
  22. Color? backgroundColor,
  23. double? strokeWidth,
  24. Color? strokeColor,
  25. Color? solidColor,
  26. double? radius,
  27. bool? isCircle,
  28. double? leftTopRadius,
  29. double? rightTopRadius,
  30. double? leftBottomRadius,
  31. double? rightBottomRadius,
  32. Widget? childWidget,
  33. Alignment? alignment,
  34. int? gradient,
  35. Alignment? gradientBegin,
  36. Alignment? gradientEnd,
  37. List<Color>? gradientColorList,
  38. List<double>? gradientColorStops,
  39. VoidCallback? onClick,
  40. VoidCallback? onDoubleClick,
  41. 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});