labelStyle property Null safety

TextStyle labelStyle

Customizes the appearance of the axis labels.

Labels are the axis values placed at each interval. Axis labels are visible by default.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(labelStyle: TextStyle(color:,

This property is used to show or hide the axis labels.


final TextStyle labelStyle;