remove method

void remove(
  1. String? key
)

Removes an element of the FaceTemplateDict object.

param key Unique key of the FaceTemplate 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.id3FaceTemplateDict_Remove(_pHandle.value, pKey ?? nullptr);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
  } finally {
    if (pKey != null) {
      calloc.free(pKey);
    }
  }
}