bytesToBigInt method

BigInt bytesToBigInt (Uint8List bytes, { bool bigEndian: false })

Implementation

static BigInt bytesToBigInt(Uint8List bytes, {bool bigEndian = false}) {
  if (!bigEndian) bytes = Uint8List.fromList(bytes.reversed.toList());
  return BigInt.parse(bytesToHexStr(bytes), radix: 16);
}