labelDisplayMode property Null safety

SparkChartLabelDisplayMode? labelDisplayMode
final

Enables the data labels.

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

Defaults to SparkChartDislayMode.none.

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

Implementation

final SparkChartLabelDisplayMode? labelDisplayMode;