ChartBar constructor

const ChartBar(
  1. {Key? key,
  2. required Size size,
  3. required List<ChartBean> chartBeans,
  4. Duration duration = const Duration(milliseconds: 800),
  5. required Color rectColor,
  6. Color? backgroundColor,
  7. bool isShowX = false,
  8. bool isAnimation = true,
  9. bool isReverse = false,
  10. double fontSize = 12,
  11. Color? fontColor,
  12. Color? rectShadowColor,
  13. bool isCanTouch = false,
  14. bool isShowTouchShadow = true,
  15. bool isShowTouchValue = false,
  16. double rectRadius = 0,
  17. double rectRadiusTopLeft = 0,
  18. double rectRadiusTopRight = 0,
  19. double rectRadiusBottomLeft = 0,
  20. double rectRadiusBottomRight = 0}
)

Implementation

const ChartBar({
  Key? key,
  required this.size,
  required this.chartBeans,
  this.duration = const Duration(milliseconds: 800),
  required this.rectColor,
  this.backgroundColor,
  this.isShowX = false,
  this.isAnimation = true,
  this.isReverse = false,
  this.fontSize = 12,
  this.fontColor,
  this.rectShadowColor,
  this.isCanTouch = false,
  this.isShowTouchShadow = true,
  this.isShowTouchValue = false,
  this.rectRadius = 0,
  this.rectRadiusTopLeft = 0,
  this.rectRadiusTopRight = 0,
  this.rectRadiusBottomLeft = 0,
  this.rectRadiusBottomRight = 0,
}) : super(key: key);