# add method

void add(

1. String? key,
2. Image imageItem

)

Adds an item to the ImageDict object.

param key Unique key of the Image item to add. param imageItem Image item to add. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void add(String? key, Image imageItem) {
      Pointer<Char>? pKey = key?.toNativeUtf8().cast<Char>();
      try {
        var err = faceSDK.id3FaceImageDict_Add(_pHandle.value, pKey ?? nullptr, imageItem.handle);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
      } finally {
        if (pKey != null) {
          calloc.free(pKey);
        }
      }
    }