remove method
- String? key
Removes an element of the StringDict object.
param key Unique key of the 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.id3DocumentStringDict_Remove(_pHandle.value, pKey ?? nullptr);
if (err != DocumentError.success.value) {
throw DocumentException(err);
}
} finally {
if (pKey != null) {
calloc.free(pKey);
}
}
}