dashArray property

List<double>? dashArray
final

Pattern of dashes and gaps used to stroke the trendline.

Defaults to null.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <CartesianSeries<ChartData,String>>[
      LineSeries<ChartData,String>(
        trendlines: <Trendline>[
          Trendline(dashArray: <double>[2,3])
        ]
      )
    ]
  );
}

Implementation

final List<double>? dashArray;