StepLineChartWidget constructor

StepLineChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. ChartTheme? theme,
  4. double lineWidth = 3.0,
  5. bool showArea = true,
  6. bool showPoints = true,
  7. bool showGrid = true,
  8. bool showAxis = true,
  9. bool showLabel = true,
  10. String? title,
  11. String? subtitle,
  12. bool useGlassmorphism = false,
  13. bool useNeumorphism = false,
  14. ChartPointCallback? onPointTap,
  15. ChartPointHoverCallback? onPointHover,
  16. bool isLoading = false,
  17. bool isError = false,
  18. String? errorMessage,
})

Implementation

StepLineChartWidget({
  super.key,
  required this.dataSets,
  this.theme,
  this.lineWidth = 3.0,
  this.showArea = true,
  this.showPoints = true,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.useGlassmorphism = false,
  this.useNeumorphism = false,
  this.onPointTap,
  this.onPointHover,
  this.isLoading = false,
  this.isError = false,
  this.errorMessage,
})  : assert(
        dataSets.isNotEmpty,
        'StepLineChartWidget requires at least one data set',
      ),
      assert(lineWidth > 0, 'Line width must be positive');