onIntResponse static method
Converts a dynamic response to an integer, handling hexadecimal conversion.
Implementation
static int onIntResponse(dynamic result) {
if (result == "0x") return 0;
return int.parse(StringUtils.strip0x(result), radix: 16);
}