Converts a int into a hex String
String intToHex(int i) { ArgumentError.checkNotNull(i); return "0x${i.toRadixString(16)}"; }