associatedAxisName property Null safety

String? associatedAxisName
final

Axis line crossed on mentioned axis name, and applicable for plot band also.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(
              associatedAxisName: 'primaryXAxis',
              plotBands: <PlotBand>[
                  PlotBand(
                     start: 2,
                     end: 5,
                     associatedAxisStart: 2,
                     ),
                 ],
            ),
       )
   );
}

Implementation

final String? associatedAxisName;