valueField property

String valueField
final

To choose the valueField(low or high) to render the trendline.

Defaults to high.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <CartseianSeries<dynamic,dynamic>>[
             LineSeries<dynamic,String>(
               trendlines: <TrendLine>[
                 Trendline(valueField: 'low')
               ])
           ]
       ));
}

Implementation

final String valueField;