hasColor static method

bool hasColor(
  1. String colorName
)

Check if color name exists

Implementation

static bool hasColor(String colorName) {
  return allColors.containsKey(colorName);
}