plotBand property Null safety

SparkChartPlotBand? plotBand

Render plot band.

Plot band is also known as stripline, which is used to shade the different ranges in plot area with different colors to improve the readability of the chart.

Plot bands are drawn based on the axis.

Provides the property of start, end, color, borderColor, and borderWidth to customize the appearance.

Defaults to null.

Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     plotBand: SparkChartPlotBand(start: 15, end: 25),
     data: <double>[18, 24, 30, 14, 28],


final SparkChartPlotBand? plotBand;