strip0xHex function

String strip0xHex(
  1. String hex
)

Implementation

String strip0xHex(String hex) {
  if (hex.startsWith('0x', 0)) return hex.substring(2);
  return hex;
}