color property

  1. @override
Color? color
final

To set the color to chart text

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
              primaryXAxis: CategoryAxis(
                     labelStyle: ChartTextStyle(color: Colors.black),
                 ));
}

Implementation

@override
final Color? color;