# findBiometrics method

FieldList findBiometrics(

1. BiometricDataType biometricDataType,
2. String? biometricFormat

)

Finds the biometric field in payload.

param biometricDataType The type of biometric data. param biometricFormat The format of the biometric data. return The list of fields containing biometric data. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    FieldList findBiometrics(BiometricDataType biometricDataType, String? biometricFormat) {
      Pointer<Char>? pBiometricFormat = biometricFormat?.toNativeUtf8().cast<Char>();
      FieldList resultFieldList = FieldList();
      try {
        var err = biosealSDK.id3Bioseal_FindBiometrics(_pHandle.value, biometricDataType.value, pBiometricFormat ?? nullptr, resultFieldList.handle);
        if (err != BiosealError.success.value) {
          resultFieldList.dispose();
          throw BiosealException(err);
        }
        return resultFieldList;
      } finally {
        if (pBiometricFormat != null) {
          calloc.free(pBiometricFormat);
        }
      }
    }