RecaptchaV2 constructor
RecaptchaV2({
- required String apiKey,
- required String apiSecret,
- String pluginURL = "https://recaptcha-flutter-plugin.firebaseapp.com/",
- bool visibleCancelBottom = false,
- String textCancelButtom = "CANCEL CAPTCHA",
- RecaptchaV2Controller? controller,
- ValueChanged<
bool> ? onVerifiedSuccessfully, - 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.");