getThemeOrDefaultColor static method

Color getThemeOrDefaultColor(
  1. MapChartDataSource? dataSource,
  2. MapFeature feature,
  3. MapChartTheme theme
)

Implementation

static Color getThemeOrDefaultColor(
    MapChartDataSource? dataSource, MapFeature feature, MapChartTheme theme) {
  Color? color = theme.getColor(dataSource, feature);
  if (color != null) {
    return color;
  }
  return MapChartTheme.defaultColor;
}