width property Null safety

double width
final

Width of the major tick lines.

Defaults to 1.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           primaryXAxis: NumericAxis(
                majorTickLines: const MajorTickLines(
                  width: 2
                )
               ),
       )
   );
}

Implementation

final double width;