textStyle property

TextStyle textStyle
final

Customizes the appearance of the chart title text.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           title: ChartTitle(
                   text: 'Chart Title',
                   textStyle: TextStyle(
                                color: Colors.red,
                                fontSize: 12,
                                fontStyle: FontStyle.normal,
                                fontWeight: FontWeight.w400,
                                fontFamily: 'Roboto'
                              ))
       ));
}

Implementation

final TextStyle textStyle;