labelDisplayMode property Null safety

SparkChartLabelDisplayMode? labelDisplayMode

Enables the data labels.

Data labels are used to provide information about the exact point location and its value.

Also refer SparkChartLabelDisplayMode.

Defaults to SparkChartDislayMode.none.

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


final SparkChartLabelDisplayMode? labelDisplayMode;