text property Null safety

String? text
final, inherited

Text to be displayed in grouping label as the multi-level label.

Defaults to 'null'

Widget build(BuildContext context) {
  return Container(
    child: SfCartesianChart(
      primaryXAxis:
        NumericAxis(multiLevelLabels: const <NumericMultiLevelLabel>[
          NumericMultiLevelLabel(
            start: 0,
            end: 4,
            text: 'First',
          )
        ]
      )
    )
  );
}

Implementation

final String? text;