BubbleChartWidget constructor
BubbleChartWidget({
- Key? key,
- required List<
BubbleDataSet> dataSets, - ChartTheme? theme,
- double minBubbleSize = 5.0,
- double maxBubbleSize = 30.0,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- bool useGlassmorphism = false,
- bool useNeumorphism = false,
- ChartPointCallback? onBubbleTap,
- ChartPointHoverCallback? onBubbleHover,
- bool isLoading = false,
- bool isError = false,
- String? errorMessage,
Implementation
BubbleChartWidget({
super.key,
required this.dataSets,
this.theme,
this.minBubbleSize = 5.0,
this.maxBubbleSize = 30.0,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.useGlassmorphism = false,
this.useNeumorphism = false,
this.onBubbleTap,
this.onBubbleHover,
this.isLoading = false,
this.isError = false,
this.errorMessage,
}) : assert(
dataSets.isNotEmpty,
'BubbleChartWidget requires at least one data set',
),
assert(minBubbleSize > 0, 'Min bubble size must be positive'),
assert(maxBubbleSize > minBubbleSize, 'Max must be greater than min');