legendTitleTextStyle property

TextStyle? legendTitleTextStyle
final

Specifies the text style for legend title.

Widget build(BuildContext context) {
 return Scaffold(
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           chartThemeData: SfChartThemeData(
             legendTitleTextStyle: TextStyle(color: Colors.red)
           )
         ),
         child: SfCartesianChart(),
       ),
     )
  );
}

Implementation

final TextStyle? legendTitleTextStyle;