StackedColumnChartWidget constructor

StackedColumnChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. ChartTheme? theme,
  4. double barWidth = 30.0,
  5. double borderRadius = 4.0,
  6. bool showGrid = true,
  7. bool showAxis = true,
  8. bool showLabel = true,
  9. String? title,
  10. String? subtitle,
  11. bool useGlassmorphism = false,
  12. bool useNeumorphism = false,
  13. BarCallback? onBarTap,
  14. bool isLoading = false,
  15. bool isError = false,
  16. String? errorMessage,
})

Implementation

StackedColumnChartWidget({
  super.key,
  required this.dataSets,
  this.theme,
  this.barWidth = 30.0,
  this.borderRadius = 4.0,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.useGlassmorphism = false,
  this.useNeumorphism = false,
  this.onBarTap,
  this.isLoading = false,
  this.isError = false,
  this.errorMessage,
})  : assert(
        dataSets.isNotEmpty,
        'StackedColumnChartWidget requires at least one data set',
      ),
      assert(barWidth > 0, 'Bar width must be positive');