dataLabelSettings property Null safety

DataLabelSettings dataLabelSettings
final

Customizes the data labels in a series. Data label is a text, which displays the details about the data point.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <LineSeries<ChartData, num>>[
      LineSeries<ChartData, num>(
        dataLabelSettings: DataLabelSettings(isVisible: true),
      ),
    ],
  );
}

Implementation

@override
final DataLabelSettings dataLabelSettings;