arrangeByIndex property Null safety

bool arrangeByIndex

Plots the data points based on the index value.

By default, data points will be grouped and plotted based on the x-value. They can also be grouped by the data point index value.

Defaults to false.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: CategoryAxis(arrangeByIndex: true),


final bool arrangeByIndex;