textStyle property

ChartTextStyle textStyle
final

Customize the legend title text.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              title: ChartTitle(
                   text: 'Countries',
                   textStyle: ChartTextStyle(
                                color: Colors.red,
                                fontSize: 12,
                                fontStyle: FontStyle.normal,
                                fontWeight: FontWeight.w400,
                                fontFamily: 'Roboto')
           ))
       ));
}

Implementation

final ChartTextStyle textStyle