name property Null safety

String? name
final

Name of an axis.

A unique name further used for linking the series to this appropriate axis.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(name: 'primaryXAxis'),
       ));
}

Implementation

final String? name;