# getTrackedFace method

TrackedFace? getTrackedFace()

Gets the tracked face.

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

## Implementation

    TrackedFace? getTrackedFace() {
      TrackedFace trackedFace = TrackedFace();
      var err = faceSDK.id3FacePortrait_GetTrackedFace(_pHandle.value, trackedFace.handle);
      if (err == FaceError.objectDoesNotExist.value) {
        trackedFace.dispose();
        return null;
      }
      if (err != FaceError.success.value) {
        trackedFace.dispose();
        throw FaceException(err);
      }
      return trackedFace;
    }