TextDecoder class
The 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.
Note: This feature is available in Web Workers
- Implemented types
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- TextDecoder([String? label = 'utf-8', TextDecoderOptions? options])
-
factory
Properties
- encoding → String
-
Available on TextDecoderCommon, provided by the PropsTextDecoderCommon extension
no setter - fatal → bool
-
Available on TextDecoderCommon, provided by the PropsTextDecoderCommon extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreBOM → bool
-
Available on TextDecoderCommon, provided by the PropsTextDecoderCommon extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
[dynamic input, TextDecodeOptions? options]) → String -
Available on TextDecoder, provided by the PropsTextDecoder extension
-
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