set method
Sets an item of the StringList object.
param index Index of the item to set. param item item to set. throws FaceException An error has occurred during Face Library execution.
Implementation
void set(int index, String? item) {
Pointer<Char>? pItem = item?.toNativeUtf8().cast<Char>();
try {
var err = faceSDK.id3FaceStringList_Set(_pHandle.value, index, pItem ?? nullptr);
if (err != FaceError.success.value) {
throw FaceException(err);
}
} finally {
if (pItem != null) {
calloc.free(pItem);
}
}
}