strip0x function

String strip0x(
  1. String str
)

Implementation

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