LineChart constructor

LineChart({
  1. Key? key,
  2. required double width,
  3. required int maxLength,
  4. required List<LineChartItem> items,
  5. double height = 5,
})

Implementation

LineChart(
    {super.key,
    required this.width,
    required this.maxLength,
    required this.items,
    this.height = 5}) {
  for (var item in items) {
    total += item.count;
  }
}