desiredIntervals property Null safety

int? desiredIntervals

The number of intervals in an axis.

By default, the number of intervals is calculated based on the minimum and maximum values and the axis width and height.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(desiredIntervals: 2),


final int? desiredIntervals;