fromString static method
- String guidString
Creates a GUID from a string value.
Parameters:
guidString
— Unique identifier string.
Implementation
static Guid? fromString(String guidString) {
_initializeArcGISEnvironmentIfNeeded();
final coreGuidString = _CString(guidString);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GUID_createFromString(
coreGuidString.bytes, errorHandler);
});
if (handle == ffi.nullptr) return null;
return Guid._withHandle(handle);
}