TextDecoder extension type

The TextDecoder interface represents a decoder for a specific text encoding, such as UTF-8, ISO-8859-2, KOI8-R, GBK, etc. A decoder takes a stream of bytes as input and emits a stream of code points.

on
Implemented types

Constructors

TextDecoder([String label, TextDecoderOptions options])
factory

Properties

encoding String
no setter
fatal bool
no setter
hashCode int
The hash code for this object.
no setterinherited
ignoreBOM bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode([AllowSharedBufferSource input, TextDecodeOptions options]) String
The TextDecoder.decode() method returns a string containing text decoded from the buffer passed as a parameter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited