getColorValue function

Color getColorValue(
  1. String colorName
)

Get Color from Color Name using colorNamesValue

Implementation

Color getColorValue(String colorName) {
  if (colorNamesValue.containsKey(colorName)) {
    return colorNamesValue.getValueByKeyStartWith(colorName)!;
  }
  return COLOR_DEFAULT;
}