add method

void add(
  1. String? item
)

Adds an item to the StringList object.

param item item to add. throws FaceException An error has occurred during Face Library execution.

Implementation

void add(String? item) {
  Pointer<Char>? pItem = item?.toNativeUtf8().cast<Char>();
  try {
    var err = faceSDK.id3FaceStringList_Add(_pHandle.value, pItem ?? nullptr);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
  } finally {
    if (pItem != null) {
      calloc.free(pItem);
    }
  }
}