dart:convert
Latin1Encoder class
This class converts strings of only ISO Latin-1 characters to bytes.
Example:
final latin1Encoder = latin1.encoder;
const sample = 'àáâãäå';
final encoded = latin1Encoder.convert(sample);
print(encoded); // [224, 225, 226, 227, 228, 229]
- Inheritance
-
Constructors
- Latin1Encoder()
const
Properties
- hashCode → int
read-only, inherited
- The hash code for this object.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- bind(Stream<String> stream) → Stream<List<int>>
inherited
- Transforms the provided
stream. - cast<RS, RT>() → Converter<RS, RT>
inherited
- Provides a
Converter<RS, RT> view of this stream transformer. - convert(String string, [int start = 0, int? end]) → Uint8List
inherited
- Converts the String into a list of its code units.
- fuse<TT>(Converter<List<int>, TT> other) → Converter<String, TT>
inherited
- Fuses
this with other. - noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- startChunkedConversion(Sink<List<int>> sink) → StringConversionSink
inherited
- Starts a chunked conversion.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.