hexToInt static method

int hexToInt(
  1. Object? v
)

Implementation

static int hexToInt(Object? v) {
  if (v == null || v == '0x') return 0;
  return JsonParser.valueAsInt(v, allowHex: true);
}