Charset class
Global method for Encoders
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 Properties
-
defaultDetectOrder
→ List<
Encoding> -
Default detect list
final
Static Methods
-
canDecode(
Encoding? encoding, List< int> char) → bool -
Whether
encoding
can decode the bytedata -
canEncode(
Encoding? encoding, String char) → bool -
Whether
encoding
can encode the string -
detect(
List< int> bytes, {Encoding? defaultEncoding, List<Encoding> ? orders, bool utf8BOM = true}) → Encoding? - Detect encoding of bytedata
-
getByName(
String codeName, [Encoding? defaultEncoding]) → Encoding? - Get Encoding by name
-
register(
Encoding encoding, String name, [List< String> ? alias]) → void - Register a name and Encoding pair to map