getThemeOrDefaultColor static method
Color
getThemeOrDefaultColor(
- MapChartDataSource? dataSource,
- MapFeature feature,
- 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;
}