UuidValue class Null safety

Constructors

UuidValue(String uuid)
UuidValue() Constructor for creating a uuid value.
const
UuidValue.fromByteList(Uint8List byteList, {int? offset})
fromByteList() creates a UuidValue from a Uint8List of bytes.
factory
UuidValue.fromList(List<int> byteList, {int? offset})
fromList() creates a UuidValue from a List<int> of bytes.
factory
UuidValue.withValidation(String uuid, [ValidationMode validationMode = ValidationMode.strictRFC4122])
withValidation() creates a UuidValue from a uuid string. Optionally, you can provide a validationMode to use when validating the uuid string. Throws FormatException if the UUID is invalid.
factory

Properties

hashCode int
The hash code for this object.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
time int
read-only
uuid String
final
version int
read-only

Methods

equals(UuidValue other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toBytes() Uint8List
toString() String
A string representation of this object.
override
validate([ValidationMode validationMode = ValidationMode.strictRFC4122]) → void
validate() validates the internal string representation of the uuid. Optionally, you can provide a validationMode to use when validating the uuid string. Throws FormatException if the UUID is invalid.

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

dns → const UuidValue
UuidValue(Uuid.NAMESPACE_DNS)
nil → const UuidValue
UuidValue(Uuid.NAMESPACE_NIL)
oid → const UuidValue
UuidValue(Uuid.NAMESPACE_OID)
url → const UuidValue
UuidValue(Uuid.NAMESPACE_URL)
x500 → const UuidValue
UuidValue(Uuid.NAMESPACE_X500)