onIntResponse static method

int onIntResponse(
  1. dynamic result
)

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);
}