remove method
- String? key
Removes an element of the DocumentInfoDictionary object.
param key Unique key of the DocumentInfo item to remove. throws DocumentException An error has occurred during Document Library execution.
Implementation
void remove(String? key) {
Pointer<Char>? pKey = key?.toNativeUtf8().cast<Char>();
try {
var err = documentSDK.id3DocumentInfoDictionary_Remove(_pHandle.value, pKey ?? nullptr);
if (err != DocumentError.success.value) {
throw DocumentException(err);
}
} finally {
if (pKey != null) {
calloc.free(pKey);
}
}
}