static String prefixHex(String hex) { if (hex.startsWith(RegExp('^0[xX]'))) return hex; return "0x$hex"; }