Utf8Codec const constructor
const Utf8Codec(Instantiates a new Utf8Codec.
The optional allowMalformed
argument defines how decoder (and decode) deal with invalid or unterminated character sequences.
If it is true
(and not overridden at the method invocation) decode and the decoder replace invalid (or unterminated) octet sequences with the Unicode Replacement character U+FFFD
(�). Otherwise they throw a FormatException.
Source
const Utf8Codec({bool allowMalformed: false}) : _allowMalformed = allowMalformed;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-convert/Utf8Codec/Utf8Codec.html