hexToInt static method

int hexToInt(
  1. String v
)

Implementation

static int hexToInt(String v) {
  if (v == "0x") return 0;
  final val = StringUtils.strip0x(v);
  return int.parse(val, radix: 16);
}