instance property

GocaptchaPlatform get instance

The default instance of GocaptchaPlatform to use.

Defaults to MethodChannelGocaptcha.

Implementation

static GocaptchaPlatform get instance => _instance;
set instance (GocaptchaPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends GocaptchaPlatform when they register themselves.

Implementation

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