FdcGuid class

Immutable GUID/UUID value used by GUID field runtime values.

The value is stored as four unsigned 32-bit words, not as canonical text. This keeps equality, hashing, comparison, sorting, and key-style from string storage while still exposing canonical text for display/export.

Accepted input forms are canonical GUID text, braced canonical GUID text, and compact 32-hex-character text.

Implemented types

Constructors

FdcGuid(String value)
Parses GUID text into a GUID value.
factory
FdcGuid.fromBytes(List<int> bytes)
Creates a FdcGuid.
factory
FdcGuid.newGuid()
Creates a new random RFC 4122 version 4 GUID value immediately.
factory

Properties

bytes List<int>
Returns the current bytes.
no setter
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether all 128 bits are zero.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Lowercase canonical GUID text.
no setter

Methods

compareTo(FdcGuid other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(String text) FdcGuid
Parses a canonical GUID string.
tryParse(String? text) FdcGuid?
Parses text, returning null instead of throwing for invalid text.

Constants

empty → const FdcGuid
Default value for empty.