color property
Color of the trendline.
Defaults to Colors.blue
.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <CartesianSeries<ChartData,String>>[
LineSeries<ChartData,String>(
trendlines: <TrendLine>[
Trendline(color: Colors.greenAccent)
]
)
]
);
}
Implementation
final Color color;