addHexPrefix static method

String addHexPrefix(
  1. String address
)

Implementation

static String addHexPrefix(String address) {
  if (address.startsWith('0x')) {
    return address;
  }
  return '0x$address';
}