multiLevelLabelStyle property Null safety

MultiLevelLabelStyle multiLevelLabelStyle

Customize the multi-level label’s border color, width, type, and text style such as color, font size, etc.

When the multi-level label’s width exceeds its respective segment, then the label will get trimmed and on tapping / hovering over the trimmed label, a tooltip will be shown.

Also refer multiLevelLabelFormatter.

Widget build(BuildContext context) {
   return Container(
     child: SfCartesianChart(
       primaryXAxis: NumericAxis(
         multiLevelLabelStyle: MultiLevelLabelStyle(
           borderWidth: 1,
           borderType: MultiLevelBorderType.rectangle,
           textStyle: TextStyle(
             fontSize: 10,


final MultiLevelLabelStyle multiLevelLabelStyle;