canAuthenticate method
Checks if biometric authentication is available on the device
Example usage:
if (await context.canAuthenticate()) {
// Show biometric-protected actions
} else {
// Show alternative UI
}
Implementation
Future<bool> canAuthenticate({GuardoService? guardoService}) async {
final service = guardoService ?? _getGuardoService();
return await service.canCheckBiometrics;
}