textStyle property
final
Customizes the legend item text.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
legend: Legend(
isVisible: true,
textStyle: ChartTextStyle(color: Colors.red))
));
}
Implementation
final ChartTextStyle textStyle