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.
Constructors
- TextDecoder([String label, TextDecoderOptions options])
-
factory
Properties
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