color property

Color color
final

Color of the plot band.

Defaults to Colors.grey

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(
            plotBands: <PlotBand>[
               PlotBand(
                   isVisible:true,
                   color: Colors.red
               )
             ]
          )
       ));
}

Implementation

final Color color;