namedColorToColor static method
Implementation
static Color? namedColorToColor(String text) {
String namedColor = namedColors.keys.firstWhere((element) => element.toLowerCase() == text.toLowerCase(), orElse: () => "");
if (namedColor != "") {
return stringToColor(namedColors[namedColor]!);
} else {
return null;
}
}