palette property

List<Color>? palette
final

Color palette for the data points in the chart series. If the series color is not specified, then the series will be rendered with appropriate palette color. Ten colors are available by default.

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
           palette: <Color>[Colors.red, Colors.green]
       )
   );
}

Implementation

final List<Color>? palette;