color property

Color color
final

Customizes the color of the plot band. Since the plot band is rendered above the axis line, you can customize the color of the plot band for a transparent view of the axis line.

Defaults to Color.fromRGBO(191, 212, 252, 0.5).

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

Implementation

final Color color;