colorFromCode method
Implementation
Color? colorFromCode(String code){
if(_colorCodes == null || _colorCodes!.isEmpty) return null;
final targetColor = _colorCodes![code];
if(targetColor != null) {
return HexColor(targetColor);
}
return null;
}