decompressString function

Future<String> decompressString(
  1. Uint8List input, {
  2. int maxDecompressedBytes = _defaultMaxDecompressedBytes,
})

Decompresses a GZip compressed byte array into a string.

Implementation

Future<String> decompressString(
  Uint8List input, {
  int maxDecompressedBytes = _defaultMaxDecompressedBytes,
}) async {
  final decompressedBytes = await decompressBytes(
    input,
    maxDecompressedBytes: maxDecompressedBytes,
  );
  return utf8.decode(decompressedBytes);
}