dashArray property

List<double> dashArray
final

Dashes of the series.

Any number of values can be provided in the list. Odd value is considered as rendering size and even value is considered as gap.

Note: This is applicable for line, spline, step line, and fast line series only.

Defaults to null

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <LineSeries<SalesData, String>>[
                  LineSeries<SalesData, String>(
                      dashArray: <double>[10, 10],
                 ),
            ],
       ));
}

Implementation

final List<double> dashArray;