decompressData static method

Uint8List decompressData(
  1. Uint8List compressedData
)

Decompress gzip data (if needed for reading)

Note: This is for client-side decompression. The contract expects pre-compressed data and doesn't decompress on-chain.

Implementation

static Uint8List decompressData(Uint8List compressedData) {
  final codec = GZipCodec();
  return Uint8List.fromList(codec.decode(compressedData));
}