StepLineChartWidget constructor

const StepLineChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. double lineWidth = 3.0,
  4. bool showArea = true,
  5. bool showPoints = true,
  6. bool showGrid = true,
  7. bool showAxis = true,
  8. bool showLabel = true,
  9. String? title,
  10. String? subtitle,
  11. Widget? header,
  12. Widget? footer,
  13. ChartPointCallback? onPointTap,
  14. ChartPointHoverCallback? onPointHover,
  15. bool isLoading = false,
  16. bool isError = false,
  17. double? height,
  18. EdgeInsets? padding,
  19. EdgeInsets? margin,
  20. ChartsConfig? config,
  21. int? xAxisLabelRotation,
  22. int? yAxisLabelRotation,
})

Implementation

const StepLineChartWidget({
  super.key,
  required this.dataSets,
  this.lineWidth = 3.0,
  this.showArea = true,
  this.showPoints = true,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.header,
  this.footer,
  this.onPointTap,
  this.onPointHover,
  this.isLoading = false,
  this.isError = false,
  this.height,
  this.padding,
  this.margin,
  this.config,
  this.xAxisLabelRotation,
  this.yAxisLabelRotation,
}) : assert(lineWidth > 0, 'Line width must be positive');