instance property

RudderSdkPlatform get instance

The default instance of RudderSdkPlatform to use.

Defaults to MethodChannelRudderSdk.

Implementation

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

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

Implementation

static set instance(RudderSdkPlatform instance) {
  PlatformInterface.verify(instance, _token);
  _instance = instance;
}