textStyle property

TextStyle? textStyle
final

Customizes the appearance of text in axis title.

Widget build(BuildContext context) {
    return Container(
        child: SfCartesianChart(
            primaryXAxis: NumericAxis(
                 title: AxisTitle(
                   text: 'Axis Title',
                   textStyle: TextStyle(
                     color: Colors.blue,
                     fontStyle: FontStyle.italic,
                     fontWeight: FontWeight.w600,
                     fontFamily: 'Roboto'
                   )
                 )
                ),
        )
   );
}

Implementation

final TextStyle? textStyle;