This class converts UTF-8 code units (lists of unsigned 8-bit integers) to a string.

Inheritance

Constructors

Utf8Decoder({bool allowMalformed: false})
const

Instantiates a new Utf8Decoder.

Methods

bind(Stream<List<int>> stream) → Stream<String>

Transform the incoming stream's events.

convert(List<int> codeUnits, [int start = 0, int end]) → String

Converts the UTF-8 codeUnits (a list of unsigned 8-bit integers) to the corresponding string.

fuse(Converter<String> next) → Converter<List<int>>

Fuses this with other.

startChunkedConversion(Sink<String> sink) → ByteConversionSink

Starts a chunked conversion.