useSeriesColor property Null safety

bool useSeriesColor
final

Uses the series color for filling the data label shape.

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

Implementation

final bool useSeriesColor;