dashArray property

List<double>? dashArray
final

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

Defaults to [0,0].

Widget build(BuildContext context) {
    return Container(
        child: SfCartesianChart(
            primaryXAxis: NumericAxis(
                 majorGridLines: MajorGridLines(
                   dashArray: [1,2]
                 )
                ),
        )
     );
}

Implementation

final List<double>? dashArray;