labelStyle property Null safety

TextStyle labelStyle

Customizes the data label text style.

Using the TextStyle, add style data labels.

Defaults to the TextStyle property with font size 12.0 and font family Roboto.

Also refer TextStyle.

Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     labelDisplayMode: SparkChartLabelDisplayMode.high,
     labelStyle: TextStyle(fontStyle: FontStyle.italic),
     data: <double>[18, 24, 30, 14, 28],


final TextStyle labelStyle;