primaryXAxis property Null safety

ChartAxis primaryXAxis
final

Customizes the primary x-axis in chart.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           primaryXAxis: DateTimeAxis(interval: 1)
       ));
}

Implementation

final ChartAxis primaryXAxis;