gzipString function

List<int> gzipString(
  1. String string, {
  2. Encoding encoding = utf8,
  3. int level = 6,
})

Deflates a String into a list of bytes with GZIP.

Implementation

List<int> gzipString(String string, {Encoding encoding = utf8, int level = 6})
=> gzip(encoding.encode(string), level: level);