bytesToBigInt static method
Converts bytes to a BigInt with the specified endianness.
Implementation
static BigInt bytesToBigInt(
Uint8List bytes, {
Endianness endianness = Endianness.Big,
}) {
var stream = ByteStream(bytes);
return stream.readBigInt(stream.length, endianness: endianness);
}