instance property

SamplesdkPlatform get instance

The default instance of SamplesdkPlatform to use.

Defaults to MethodChannelSamplesdk.

Implementation

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

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

Implementation

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