errorMsg property
String
errorMsg
Implementation
String get errorMsg {
if (isSuccess || isCanceled) {
return '';
}
if (isFailed) {
if (type == BiometricType.NO_HARDWARE)
return 'There is no biometric hardware.';
if (type == BiometricType.UNAVAILABLE)
return 'The hardware is unavailable.';
if (type == BiometricType.NONE)
return 'No biometrics enrolled in your device.';
if (type == BiometricType.UNSUPPORTED)
return 'Biometric is not supported in your device.';
}
return '';
}