legendIconType property

LegendIconType legendIconType
final

Specifies the type of legend icon for trendline.

Defaults to LegendIconType.HorizontalLine.

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

Implementation

final LegendIconType legendIconType;