containsExtensionByName method
- String? extensionName
Returns a value indicating whether the field (or one of its child fields) contains an extension with specified name.
param extensionName A string that identifies the extension. return A value indicating whether the field (or one of its child fields) contains the specified extension. throws BiosealException An error has occurred during Bioseal Library execution.
Implementation
bool containsExtensionByName(String? extensionName) {
Pointer<Char>? pExtensionName = extensionName?.toNativeUtf8().cast<Char>();
Pointer<Bool> pResult = calloc();
try {
var err = biosealSDK.id3BiosealField_ContainsExtensionByName(_pHandle.value, pExtensionName ?? nullptr, pResult);
if (err != BiosealError.success.value) {
throw BiosealException(err);
}
final vResult = pResult.value;
return vResult;
} finally {
if (pExtensionName != null) {
calloc.free(pExtensionName);
}
calloc.free(pResult);
}
}