bytesToBigInt static method

BigInt bytesToBigInt(
  1. List s
)

Implementation

static BigInt bytesToBigInt(List s) {
  if (s == null || s.length == 0) {
    return BigInt.zero;
  }

  int v = 0;
  for (int byte in s) {
    v = (v << 8) | (byte & 0xFF);
  }

  return BigInt.from(v);
}