width property

double width
final

Width of trendlines.

Defaults to 2.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <CartesianSeries<ChartData,String>>[
      LineSeries<ChartData,String>(
        trendlines: <TrendLine>[
          Trendline(width: 4)
        ]
      )
    ]
  );
}

Implementation

final double width;