decodeToString method

String decodeToString(
  1. List<int> input, {
  2. bool allowMalformed = false,
})

Decodes a Brotli-compressed UTF-8 string.

Implementation

String decodeToString(List<int> input, {bool allowMalformed = false}) {
  return utf8.decode(decode(input), allowMalformed: allowMalformed);
}