SplineChartWidget constructor
SplineChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - ChartTheme? theme,
- double lineWidth = 3.0,
- bool showArea = true,
- bool showPoints = true,
- 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
SplineChartWidget({
super.key,
required this.dataSets,
this.theme,
this.lineWidth = 3.0,
this.showArea = true,
this.showPoints = true,
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,
'SplineChartWidget requires at least one data set',
),
assert(lineWidth > 0, 'Line width must be positive');