tryHexToBigint static method

BigInt? tryHexToBigint(
  1. String? v
)

Implementation

static BigInt? tryHexToBigint(String? v) {
  if (v == null || v == "0x") return null;
  try {
    return hexToBigint(v);
  } catch (e) {
    return null;
  }
}