add method
- String? item
Adds an item to the StringList object.
param item item to add. throws DocumentException An error has occurred during Document Library execution.
Implementation
void add(String? item) {
Pointer<Char>? pItem = item?.toNativeUtf8().cast<Char>();
try {
var err = documentSDK.id3DocumentStringList_Add(_pHandle.value, pItem ?? nullptr);
if (err != DocumentError.success.value) {
throw DocumentException(err);
}
} finally {
if (pItem != null) {
calloc.free(pItem);
}
}
}