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 aString
. Throws anArgumentError
if the input is not a valid Latin-1 encoded string. @param from theString
to create theLatin1Data
from @return theLatin1Data
@throws ArgumentError when the input string is not a valid Latin-1 encoding.factory - Latin1Data.validated(String from)
-
Creates a
Latin1Data
value from aString
. Validates that the input String is a valid Latin-1 encoding. @param from theString
to create theLatin1Data
from. @return aDataEncodingValidationResult
representing a validation error or theLatin1Data
Properties
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