get method
- String? key
Gets an item of the ExtensionList object.
param key Unique key of the Extension item to get. return Extension item to get. throws BiosealException An error has occurred during Bioseal Library execution.
Implementation
Extension get(String? key) {
Pointer<Char>? pKey = key?.toNativeUtf8().cast<Char>();
Extension extensionItem = Extension();
try {
var err = biosealSDK.id3BiosealExtensionList_Get(_pHandle.value, pKey ?? nullptr, extensionItem.handle);
if (err != BiosealError.success.value) {
extensionItem.dispose();
throw BiosealException(err);
}
return extensionItem;
} finally {
if (pKey != null) {
calloc.free(pKey);
}
}
}