LineChart constructor

LineChart({
  1. Key? key,
  2. List<LineChartPoint>? points,
  3. Color bgColor = const Color(0xFFF7F8FA),
  4. Size size = Size.infinite,
  5. Color xAxisColor = const Color(0xFFE2E4EA),
  6. double xAxisWidth = 1,
  7. Color yAxisColor = const Color(0xFFE2E4EA),
  8. double yAxisWidth = 1,
  9. bool showYAxis = false,
  10. int xLineNums = 1,
  11. Color lineColor = const Color(0xFF1678FF),
  12. double lineWidth = 1,
  13. bool showXLineText = false,
  14. Color xLineTextColor = const Color(0xFF858B9C),
  15. LineChartPointConfig? config,
  16. bool showYLineMark = false,
  17. SelectedCallback? selectedCallback,
  18. List<List<LineChartPoint>>? multipleLinePoints,
  19. List<Color>? multipleLinePointsColor,
  20. List<String>? xLineMarks,
  21. String? yUnit = '',
  22. bool useUnifyYUnit = false,
  23. LineChartController? controller,
})

Implementation

LineChart(
    {Key? key,
    this.points,
    this.bgColor = const Color(0xFFF7F8FA),
    this.size = Size.infinite,
    this.xAxisColor = const Color(0xFFE2E4EA),
    this.xAxisWidth = 1,
    this.yAxisColor = const Color(0xFFE2E4EA),
    this.yAxisWidth = 1,
    this.showYAxis = false,
    this.xLineNums = 1,
    this.lineColor = const Color(0xFF1678FF),
    this.lineWidth = 1,
    this.showXLineText = false,
    this.xLineTextColor = const Color(0xFF858B9C),
    this.config,
    this.showYLineMark = false,
    this.selectedCallback,
    this.multipleLinePoints,
    this.multipleLinePointsColor,
    this.xLineMarks,
    this.yUnit = '',
    this.useUnifyYUnit = false,
    this.controller})
    : super(key: key) {
  // assert(points == null && multipleLinePoints == null);
}