# set method

void set(

1. String? key,
2. Image imageItem

)

Sets an item of the ImageDict object.

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

## Implementation

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