textStyle property Null safety

TextStyle textStyle
final

Customizes the data label font.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <SplineSeries<SalesData, num>>[
               SplineSeries<SalesData, num>(
                 dataLabelSettings: DataLabelSettings(isVisible:true,
                   textStyle: TextStyle(color: Colors.red)),
               ),
             ],
       ));
}

Implementation

final TextStyle textStyle;