Latin1Data class

Byte data represented by Latin-1 encoded text. @param value the data bytes

Constructors

Latin1Data(Uint8List? value)
Creates a Latin1Data instance from raw bytes data. @param value the underlying data
Latin1Data.unsafe(String from)
Unsafely creates a Latin1Data instance from a String. Throws an ArgumentError if the input is not a valid Latin-1 encoded string. @param from the String to create the Latin1Data from @return the Latin1Data @throws ArgumentError when the input string is not a valid Latin-1 encoding.
factory
Latin1Data.validated(String from)
Creates a Latin1Data value from a String. Validates that the input String is a valid Latin-1 encoding. @param from the String to create the Latin1Data from. @return a DataEncodingValidationResult representing a validation error or the Latin1Data

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show String
no setter
value Uint8List?
final

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.
override