Converts the hexadecimal input and creates an int.
int hexToDartInt(String hex) { return int.parse(hex.stripOx(), radix: 16); }