execute method

Future<String> execute(
  1. RecaptchaAction action, {
  2. double? timeout,
})

Executes reCAPTCHA Enterprise on a user action.

timeout is specified in milliseconds. A value of 10000 (10 seconds) is suggested, and the minimum value is 5000 (5 seconds).

Implementation

Future<String> execute(RecaptchaAction action, {double? timeout}) {
  return RecaptchaEnterprisePlatform.instance
      .execute(action.action, timeout: timeout);
}