Guid class
Represents an immutable GUID (globally unique identifier).
To pass a GUID to a Windows API, use the toNativeGUID method to create a copy in unmanaged memory.
Constructors
- Guid(UnmodifiableUint8ListView bytes)
-
const
- Guid.fromComponents(int data1, int data2, int data3, int data4)
-
Creates a Guid from four integer components.
factory
- Guid.generate()
-
Creates a new GUID.
factory
- Guid.parse(String guid)
-
Creates a new GUID from a string.
factory
- Guid.zero()
-
Creates a 'nil' GUID (i.e. {00000000-0000-0000-0000-000000000000})
factory
Properties
- bytes → UnmodifiableUint8ListView
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toNativeGUID(
{Allocator allocator = malloc}) → Pointer< GUID> - Copy the GUID to unmanaged memory and return a pointer to the memory location.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override