toHex32 method

String toHex32()

Same as toHexUnsigned, but ensure a width of 4 bytes (8 HEX width).

Implementation

String toHex32() {
  if (isNegative) {
    return toHexUnsigned(width: 8);
  } else {
    return toHex(width: 8);
  }
}