uft8Decode method

String uft8Decode({
  1. bool? allowMalformed = false,
})

Decodes this list of UTF-8 code units (bytes) to the corresponding string.

If allowMalformed is true the decoder replaces invalid (or unterminated) character sequences with the Unicode Replacement character U+FFFD (�). Otherwise it throws a FormatException.

Implementation

String uft8Decode({bool? allowMalformed = false}) =>
    utf8.decode(this, allowMalformed: allowMalformed);