color property

Color color
final

Color of the trenline.

Defaults to Colors.blue.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <CartseianSeries<dynamic,dynamic>>[
             LineSeries<dynamic,String>(
               trendlines: <TrendLine>[
                 Trendline(color: Colors.greenAccent)
               ])
           ]
       ));
}

Implementation

final Color color;