legendTextStyle property

TextStyle? legendTextStyle
final

Specifies the legend text style of treemap widgets.

Widget build(BuildContext context) {
 return Scaffold(
   appBar: AppBar(),
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           treemapThemeData: SfTreemapThemeData(
             legendTextStyle: TextStyle(color: Colors.blue),
             ),
           ),
         child: SfTreemap(),
       ),
     )
  );
}

Implementation

final TextStyle? legendTextStyle;