compressSync function
performs string compression in same isolate
Implementation
String compressSync(String s) {
List<int> bytes = utf8.encode(s);
List<int> compressedBytes = GZipCodec().encode(bytes);
return base64.encode(compressedBytes);
}