BiometricConfig constructor
const
BiometricConfig({
- String? lockOut,
- String? goToSettingsButton,
- String? goToSettingsDescription,
- String? cancelButton,
- String? localizedFallbackTitle,
- String? biometricHint,
- String? biometricNotRecognized,
- String? biometricRequiredTitle,
- String? biometricSuccess,
- String? deviceCredentialsRequiredTitle,
- String? deviceCredentialsSetupDescription,
- String? signInTitle,
- String deviceException = "Device isn't supported!",
- String failureException = "Biometric matching failed!",
- String checkingException = "Can not check biometrics!",
- String localizedReason = "Scan your fingerprint (or face or whatever) to authenticate",
- AuthenticationOptions options = const AuthenticationOptions(stickyAuth: true, biometricOnly: true),
Implementation
const BiometricConfig({
// Ios
this.lockOut,
this.goToSettingsButton,
this.goToSettingsDescription,
this.cancelButton,
this.localizedFallbackTitle,
// Android
this.biometricHint,
this.biometricNotRecognized,
this.biometricRequiredTitle,
this.biometricSuccess,
this.deviceCredentialsRequiredTitle,
this.deviceCredentialsSetupDescription,
this.signInTitle,
// Base
this.deviceException = "Device isn't supported!",
this.failureException = "Biometric matching failed!",
this.checkingException = "Can not check biometrics!",
this.localizedReason =
"Scan your fingerprint (or face or whatever) to authenticate",
this.options = const AuthenticationOptions(
stickyAuth: true,
biometricOnly: true,
),
});