# getFaceTemplate method

FaceTemplate? getFaceTemplate()

Gets the face template.

return Face template. throws FaceException An error has occurred during Face Library execution.

## Implementation

    FaceTemplate? getFaceTemplate() {
      FaceTemplate faceTemplate = FaceTemplate();
      var err = faceSDK.id3FacePortrait_GetFaceTemplate(_pHandle.value, faceTemplate.handle);
      if (err == FaceError.objectDoesNotExist.value) {
        faceTemplate.dispose();
        return null;
      }
      if (err != FaceError.success.value) {
        faceTemplate.dispose();
        throw FaceException(err);
      }
      return faceTemplate;
    }