intToHex function

String intToHex(
  1. int i
)

Converts a int into a hex String

Implementation

String intToHex(int i) {
  ArgumentError.checkNotNull(i);

  return "0x${i.toRadixString(16)}";
}