dashArray property

List<double>? dashArray
final

Dashes of the line of a sparkline chart. Any number of values can be provided on the list. Odd value is considered as rendering size and even value is considered a gap.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
      child: SfSparkLineChart(
        dashArray: <double>[2,2]
      )
    ),
 );
}

Implementation

final List<double>? dashArray;