ChartLine constructor

const ChartLine({
  1. Key? key,
  2. required Size size,
  3. required List<ChartBean> chartBeans,
  4. double lineWidth = 4,
  5. bool isCurve = true,
  6. List<Color>? shaderColors,
  7. required Color lineColor,
  8. Color? xyColor,
  9. Color? backgroundColor,
  10. bool isShowXy = true,
  11. bool isShowYValue = true,
  12. bool isShowXyRuler = true,
  13. bool isShowHintX = false,
  14. bool isShowHintY = false,
  15. bool isShowBorderTop = false,
  16. bool isShowBorderRight = false,
  17. int? yNum,
  18. bool? isShowFloat,
  19. double? fontSize,
  20. Color? fontColor,
  21. double rulerWidth = 8,
  22. Duration duration = const Duration(milliseconds: 800),
  23. bool isAnimation = true,
  24. bool isReverse = false,
  25. bool isCanTouch = false,
  26. bool isShowPressedHintLine = true,
  27. double pressedPointRadius = 4,
  28. double pressedHintLineWidth = 0.5,
  29. Color? pressedHintLineColor,
})

Implementation

const ChartLine({
  Key? key,
  required this.size,
  required this.chartBeans,
  this.lineWidth = 4,
  this.isCurve = true,
  this.shaderColors,
  required this.lineColor,
  this.xyColor,
  this.backgroundColor,
  this.isShowXy = true,
  this.isShowYValue = true,
  this.isShowXyRuler = true,
  this.isShowHintX = false,
  this.isShowHintY = false,
  this.isShowBorderTop = false,
  this.isShowBorderRight = false,
  this.yNum,
  this.isShowFloat,
  this.fontSize,
  this.fontColor,
  this.rulerWidth = 8,
  this.duration = const Duration(milliseconds: 800),
  this.isAnimation = true,
  this.isReverse = false,
  this.isCanTouch = false,
  this.isShowPressedHintLine = true,
  this.pressedPointRadius = 4,
  this.pressedHintLineWidth = 0.5,
  this.pressedHintLineColor,
}) : super(key: key);