int2hex static method

String int2hex(
  1. int integer
)

Converts an integer to a hex string.

Returns a string representing the hex value. ffffffff

Implementation

static String int2hex(int integer) {
  String hex = integer.toRadixString(16);

  while (hex.length < 6) {
    hex = "0$hex";
  }

  return hex;
}