hexToColorName static method

String? hexToColorName(
  1. Object hexValue
)

Implementation

static String? hexToColorName(Object hexValue) {
  for (final entry in _EXTENDED_COLOR_NAMES) {
    if (entry['value'] == hexValue) {
      return entry['name'] as String?;
    }
  }

  return null;
}