stringToHexColor static method

String stringToHexColor(
  1. String value
)

Implementation

static String stringToHexColor(String value) {
  String c = (_hash(value) & 0x00FFFFFF).toRadixString(16).toUpperCase();
  return "0xFF00000".substring(0, 10 - c.length) + c;
}