BubbleChartWidget constructor

BubbleChartWidget({
  1. Key? key,
  2. required List<BubbleDataSet> dataSets,
  3. ChartTheme? theme,
  4. double minBubbleSize = 5.0,
  5. double maxBubbleSize = 30.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. ChartPointCallback? onBubbleTap,
  14. ChartPointHoverCallback? onBubbleHover,
  15. bool isLoading = false,
  16. bool isError = false,
  17. 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');