instance property Null safety

RecaptchaVerifierFactoryPlatform instance

Returns an assigned delegate instance.

On platforms which do not support Recaptcha Verifier, an UnimplementedError will be thrown.

Implementation

static RecaptchaVerifierFactoryPlatform get instance {
  if (_instance == null) {
    throw UnimplementedError('RecaptchaVerifier is not implemented');
  }

  return _instance!;
}
void instance=(RecaptchaVerifierFactoryPlatform instance)

Sets a factory delegate as the current RecaptchaVerifierFactoryPlatform instance.

Implementation

static set instance(RecaptchaVerifierFactoryPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}