CharsetConverter class

Charset converter.

Utilizes channels to use platform built-in charset converter. Helps with Dart's lack of many charset codecs. This saves app package size, however does come with platform dependency.

This package does not include any external dependcies.

Constructors

CharsetConverter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

availableCharsets() Future<List<String>>
Get list of available charsets
checkAvailability(String charset) Future<bool>
Check if given charset is available
decode(String charset, Uint8List data) Future<String>
Decodes data into String by given charset.
encode(String charset, String data) Future<Uint8List>
Encodes data to given charset supported by the platform.