SparklineChartWidget constructor

const SparklineChartWidget({
  1. Key? key,
  2. required ChartDataSet dataSet,
  3. ChartTheme? theme,
  4. double lineWidth = 2.0,
  5. bool showArea = true,
  6. bool showLabel = false,
  7. Color? positiveColor,
  8. Color? negativeColor,
  9. String? title,
  10. String? subtitle,
  11. bool useGlassmorphism = false,
  12. bool useNeumorphism = false,
  13. bool isLoading = false,
  14. bool isError = false,
  15. String? errorMessage,
  16. ChartPointCallback? onPointTap,
})

Implementation

const SparklineChartWidget({
  super.key,
  required this.dataSet,
  this.theme,
  this.lineWidth = 2.0,
  this.showArea = true,
  this.showLabel = false,
  this.positiveColor,
  this.negativeColor,
  this.title,
  this.subtitle,
  this.useGlassmorphism = false,
  this.useNeumorphism = false,
  this.isLoading = false,
  this.isError = false,
  this.errorMessage,
  this.onPointTap,
});