ScatterChartWidget constructor
ScatterChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - ChartTheme? theme,
- double pointSize = 8.0,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- bool useGlassmorphism = false,
- bool useNeumorphism = false,
- ChartPointCallback? onPointTap,
- ChartPointHoverCallback? onPointHover,
- bool isLoading = false,
- bool isError = false,
- String? errorMessage,
Implementation
ScatterChartWidget({
super.key,
required this.dataSets,
this.theme,
this.pointSize = 8.0,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.useGlassmorphism = false,
this.useNeumorphism = false,
this.onPointTap,
this.onPointHover,
this.isLoading = false,
this.isError = false,
this.errorMessage,
}) : assert(
dataSets.isNotEmpty,
'ScatterChartWidget requires at least one data set',
),
assert(pointSize > 0, 'Point size must be positive');