GetLicenseKey static method
Returns the license key used for activation.
The function throws a LexActivatorException on error.
Implementation
static String GetLicenseKey() {
final array = calloc<Uint8>(256);
int status = _lexActivatorNative.GetLicenseKey(
array.cast(),
256,
);
if (LexStatusCodes.LA_OK != status) {
throw LexActivatorException(status);
}
final licenseKey = convertArrayToDartString(array);
calloc.free(array);
return licenseKey;
}