conversionColor function

String conversionColor(
  1. Map originMap
)

Implementation

String conversionColor(Map originMap) {
  List propsList = originMap['propsList'];
  String typeName = propsList.first['type'];
  if (typeName == 'IntegerLiteral') {
    int value = propsList.first['value'];
    String resultString = '0x${value.toRadixString(16)}';
    return resultString;
  }

  return '';
}