authenticate method

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

Requests biometric authentication using the Flutter Local Authentication plugin.

This method triggers a biometric authentication prompt, allowing the user to authenticate using their fingerprint, face, or other biometric methods supported by the device. If the user successfully authenticates, the method returns true. If authentication fails or is canceled, it returns false.

The method defines which authenticators the user is allowed to use.

Implementation

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