BarChartWidget constructor
const
BarChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - ChartTheme? theme,
- double barWidth = 20.0,
- double borderRadius = 8.0,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- bool useGlassmorphism = false,
- bool useNeumorphism = false,
- bool isGrouped = false,
- BarCallback? onBarTap,
- BarHoverCallback? onBarHover,
- bool isLoading = false,
- bool isError = false,
- 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,
});