loadFromString method

void loadFromString(
  1. String? manifestData
)

Loads the manifest.

param manifestData The manifest data. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

void loadFromString(String? manifestData) {
  Pointer<Char>? pManifestData = manifestData?.toNativeUtf8().cast<Char>();
  try {
    var err = biosealSDK.id3BiosealManifest_LoadFromString(_pHandle.value, pManifestData ?? nullptr);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
  } finally {
    if (pManifestData != null) {
      calloc.free(pManifestData);
    }
  }
}