uint8ListToBigInt function

BigInt uint8ListToBigInt(
  1. Uint8List data
)

Implementation

BigInt uint8ListToBigInt(Uint8List data) {
  var result = BigInt.from(0);
  for (var i = 0; i < 8; i++) {
    result += BigInt.from(data[i]) << (8 * i);
  }
  return result;
}