instance property

PitchKitPlatform get instance

The default instance of PitchKitPlatform to use.

Defaults to MethodChannelPitchKit.

Implementation

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

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

Implementation

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