fetchLicenseInfo method

Future<LicenseInfo> fetchLicenseInfo()

Retrieves the current portal user's LicenseInfo including its entitlements and extensions.

Return Value: A Future that provides the LicenseInfo for the current user on the portal.

Implementation

Future<LicenseInfo> fetchLicenseInfo() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Portal_fetchLicenseInfoAsync(_handle, errorHandler);
  });
  return taskHandle.toFuture((element) => element.getValueAsLicenseInfo()!);
}