remove method
- String? key
Removes an element of the ImageDict object.
param key Unique key of the Image item to remove. throws FaceException An error has occurred during Face Library execution.
Implementation
void remove(String? key) {
Pointer<Char>? pKey = key?.toNativeUtf8().cast<Char>();
try {
var err = faceSDK.id3FaceImageDict_Remove(_pHandle.value, pKey ?? nullptr);
if (err != FaceError.success.value) {
throw FaceException(err);
}
} finally {
if (pKey != null) {
calloc.free(pKey);
}
}
}