loadFromFile method

void loadFromFile(
  1. String? path
)

Loads the manifest from file.

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

Implementation

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