RecaptchaVerifier class

An reCAPTCHA-based application verifier.

Constructors

RecaptchaVerifier({required FirebaseAuthPlatform auth, String? container, RecaptchaVerifierSize size = RecaptchaVerifierSize.normal, RecaptchaVerifierTheme theme = RecaptchaVerifierTheme.light, RecaptchaVerifierOnSuccess? onSuccess, RecaptchaVerifierOnError? onError, RecaptchaVerifierOnExpired? onExpired})
Creates a new RecaptchaVerifier instance used to render a reCAPTCHA widget when calling signInWithPhoneNumber.
factory

Properties

delegate → RecaptchaVerifierFactoryPlatform
Returns the underlying factory delegate instance.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The application verifier type. For a reCAPTCHA verifier, this is 'recaptcha'.
no setter

Methods

clear() → void
Clears the reCAPTCHA widget from the page and destroys the current instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() Future<int>
Renders the reCAPTCHA widget on the page.
toString() String
A string representation of this object.
inherited
verify() Future<String>
Waits for the user to solve the reCAPTCHA and resolves with the reCAPTCHA token.

Operators

operator ==(Object other) bool
The equality operator.
inherited