type property

TrendlineType type
final

Specifies the intercept value of the trendlines.

Defaults to TrendlineType.linear.

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

Implementation

final TrendlineType type;