decompressSync function

String decompressSync(
  1. String s
)

performs string decompression in same isolate

Implementation

String decompressSync(String s) {
  List<int> compressedBytes = base64.decode(s);
  List<int> decompressedBytes = GZipCodec().decode(compressedBytes);
  return utf8.decode(decompressedBytes);
}