legendTextStyle property

TextStyle? legendTextStyle
final

Specifies the text style for legend text.

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

Implementation

final TextStyle? legendTextStyle;