canAuthenticate method

Future<bool> canAuthenticate({
  1. AuthenticationMethod method = AuthenticationMethod.biometricsOnly,
})

Checks whether biometric authentication is available on the device.

Returns true if the user can authenticate with the given method, false otherwise (including when the platform does not support it).

Implementation

Future<bool> canAuthenticate({
  AuthenticationMethod method = AuthenticationMethod.biometricsOnly,
}) {
  throw UnimplementedError('canAuthenticate() has not been implemented.');
}