instance property

The default instance of ConsentSdkPluginPlatform to use.

Defaults to MethodChannelConsentSdkPlugin.

Implementation

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

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

Implementation

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