LineChartWidget constructor

const LineChartWidget({
  1. Key? key,
  2. required String title,
  3. required List<FlSpot> data,
  4. Color lineColor = AppColors.primaryBlue,
  5. bool showDots = true,
  6. bool showArea = true,
  7. double maxY = 100,
  8. List<String>? xLabels,
})

Implementation

const LineChartWidget({
  Key? key,
  required this.title,
  required this.data,
  this.lineColor = AppColors.primaryBlue,
  this.showDots = true,
  this.showArea = true,
  this.maxY = 100,
  this.xLabels,
}) : super(key: key);