hasAuthenticationMethods property
Checks if any authentication method is available on the device
Implementation
Future<bool> get hasAuthenticationMethods async {
try {
final isSupported = await isDeviceSupported;
if (!isSupported) return false;
final canCheck = await canCheckBiometrics;
if (!canCheck) return false;
final availableMethods = await availableBiometrics;
return availableMethods.isNotEmpty;
} catch (e) {
debugPrint("Error checking authentication methods: $e");
return false;
}
}