width property Null safety

double? width

Width of the series.

In line, spline, step line, and fast line series, width of the line will be changed. In column series, width of the column rectangle will be changed. In bar series, the height of the bar rectangle will be changed.

Note: This is not applicable for area, scatter, and bubble series.

Default to 2

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <LineSeries<LineData, num>>[
                  LineSeries<LineData, num>(
                      width: 2,


final double? width;