BarChartWidget constructor

const BarChartWidget({
  1. Key? key,
  2. required List<ChartDataSet> dataSets,
  3. ChartTheme? theme,
  4. double barWidth = 20.0,
  5. double borderRadius = 8.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. bool isGrouped = false,
  14. BarCallback? onBarTap,
  15. BarHoverCallback? onBarHover,
  16. bool isLoading = false,
  17. bool isError = false,
  18. String? errorMessage,
})

Implementation

const BarChartWidget({
  super.key,
  required this.dataSets,
  this.theme,
  this.barWidth = 20.0,
  this.borderRadius = 8.0,
  this.showGrid = true,
  this.showAxis = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.useGlassmorphism = false,
  this.useNeumorphism = false,
  this.isGrouped = false,
  this.onBarTap,
  this.onBarHover,
  this.isLoading = false,
  this.isError = false,
  this.errorMessage,
});