dart:convert
Encoding class
Open-ended Encoding enum.
- Inheritance
-
- Implementers
Constructors
- Encoding()
const
Properties
- decoder → Converter<List<int>, String>
read-only, override
- Returns the decoder of
this, converting from List<int> to String. - encoder → Converter<String, List<int>>
read-only, override
- Returns the encoder from
String to List<int>. - hashCode → int
read-only, inherited
- The hash code for this object.
- inverted → Codec<List<int>, String>
read-only, inherited
- Inverts
this. - name → String
read-only
- Name of the encoding.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- decode(List<int> encoded) → String
inherited
- Decodes
encoded data. - decodeStream(Stream<List<int>> byteStream) → Future<String>
- encode(String input) → List<int>
inherited
- Encodes
input. - fuse<R>(Codec<List<int>, R> other) → Codec<String, R>
inherited
- Fuses
this with other. - noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.
Static Methods
- getByName(String? name) → Encoding?
- Returns an Encoding for a named character set.