instance property

ContextSdkPlatform get instance

The default instance of ContextSdkPlatform to use.

Defaults to MethodChannelContextSdk.

Implementation

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

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

Implementation

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