# get method

FaceTemplate get(

1. String? key

)

Gets an item of the FaceTemplateDict object.

param key Unique key of the FaceTemplate item to get. return FaceTemplate item to get. throws FaceException An error has occurred during Face Library execution.

## Implementation

    FaceTemplate get(String? key) {
      Pointer<Char>? pKey = key?.toNativeUtf8().cast<Char>();
      FaceTemplate faceTemplateItem = FaceTemplate();
      try {
        var err = faceSDK.id3FaceTemplateDict_Get(_pHandle.value, pKey ?? nullptr, faceTemplateItem.handle);
        if (err != FaceError.success.value) {
          faceTemplateItem.dispose();
          throw FaceException(err);
        }
        return faceTemplateItem;
      } finally {
        if (pKey != null) {
          calloc.free(pKey);
        }
      }
    }