stringToHexInt static method

int stringToHexInt(
  1. String value
)

Implementation

static int stringToHexInt(String value) {
  String c = (_hash(value) & 0x00FFFFFF).toRadixString(16).toUpperCase();
  String hex = "FF00000".substring(0, 8 - c.length) + c;
  return int.parse(hex, radix: 16);
}