dataLabelSurfaceColor method

Color dataLabelSurfaceColor(
  1. CartesianChartDataLabelPositioned label
)

Implementation

Color dataLabelSurfaceColor(CartesianChartDataLabelPositioned label) {
  final SfChartThemeData chartThemeData = parent!.chartThemeData!;
  final ThemeData themeData = parent!.themeData!;
  if (chartThemeData.plotAreaBackgroundColor != Colors.transparent) {
    return chartThemeData.plotAreaBackgroundColor!;
  } else if (chartThemeData.backgroundColor != Colors.transparent) {
    return chartThemeData.backgroundColor!;
  }
  return themeData.colorScheme.surface;
}