getEnrolledBiometrics method
Returns a list of enrolled biometrics.
Possible values include:
- BiometricType.face
- BiometricType.fingerprint
- BiometricType.iris (not yet implemented)
- BiometricType.strong
- BiometricType.weak
Implementation
@override
Future<List<BiometricType>> getEnrolledBiometrics() async {
final List<AuthClassificationWrapper?> result =
await _api.getEnrolledBiometrics();
return result
.cast<AuthClassificationWrapper>()
.map((AuthClassificationWrapper entry) {
switch (entry.value) {
case AuthClassification.weak:
return BiometricType.weak;
case AuthClassification.strong:
return BiometricType.strong;
}
}).toList();
}