canAuthenticate method

  1. @override
Future<bool> canAuthenticate()
override

Checks whether biometric authentication is available on the device.

Returns true if biometric authentication is available, false otherwise. This method communicates with the native platform to determine if biometric authentication methods such as fingerprint or face recognition are supported.

Returns true if biometric authentication is available, false otherwise.

Throws an exception if there's an issue checking the device's support for biometric authentication.

Implementation

@override
Future<bool> canAuthenticate() async {
  return await methodChannel.invokeMethod<bool>('canAuthenticate') ?? false;
}