strip0x method

String strip0x(
  1. String hex
)

Implementation

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