SparklineChartWidget constructor
const
SparklineChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - double lineWidth = 2.0,
- bool showArea = true,
- bool showLabel = false,
- Color? positiveColor,
- Color? negativeColor,
- String? title,
- String? subtitle,
- Widget? header,
- bool isLoading = false,
- bool isError = false,
- ChartPointCallback? onPointTap,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- ChartsConfig? config,
Implementation
const SparklineChartWidget({
super.key,
required this.dataSets,
this.lineWidth = 2.0,
this.showArea = true,
this.showLabel = false,
this.positiveColor,
this.negativeColor,
this.title,
this.subtitle,
this.header,
this.footer,
this.isLoading = false,
this.isError = false,
this.onPointTap,
this.height,
this.padding,
this.margin,
this.config,
});