authenticate method
Bot API 7.2+ A method that authenticates the user using biometrics according to the params argument of type BiometricAuthenticateParams. If an optional callback parameter was passed, the callback function will be called and the first argument will be a boolean indicating whether the user authenticated successfully. If so, the second argument will be a biometric token.
Implementation
BiometricManager authenticate(
BiometricAuthenticateParams params,
void Function(bool authenticated, String? token) onResult,
) {
_bm.authenticate(
BiometricAuthenticateParamsJSObject(reason: params.reason),
onResult.toJS,
);
return this;
}