static bool isValidHexValue(String value) { if (!value.startsWith('0x')) return false; try { BigInt.parse(value.substring(2), radix: 16); return true; } catch (e) { return false; } }