RecaptchaV2 constructor

RecaptchaV2({
  1. required String apiKey,
  2. required String apiSecret,
  3. String pluginURL = "https://recaptcha-flutter-plugin.firebaseapp.com/",
  4. bool visibleCancelBottom = false,
  5. String textCancelButtom = "CANCEL CAPTCHA",
  6. RecaptchaV2Controller? controller,
  7. ValueChanged<bool>? onVerifiedSuccessfully,
  8. ValueChanged<String>? onVerifiedError,
})

Implementation

RecaptchaV2({
  required this.apiKey,
  required this.apiSecret,
  this.pluginURL: "https://recaptcha-flutter-plugin.firebaseapp.com/",
  this.visibleCancelBottom: false,
  this.textCancelButtom: "CANCEL CAPTCHA",
  RecaptchaV2Controller? controller,
  this.onVerifiedSuccessfully,
  this.onVerifiedError,
})  : controller = controller ?? RecaptchaV2Controller(),
      assert(apiKey != null, "Google ReCaptcha API KEY is missing."),
      assert(apiSecret != null, "Google ReCaptcha API SECRET is missing.");