width property Null safety

double width
final

Width of the major grid lines.

Defaults to 0.7.

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

Implementation

final double width;