instance property

PrivKitPlatform get instance

The default instance of PrivKitPlatform to use.

Defaults to MethodChannelPrivKit.

Implementation

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

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

Implementation

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