instance property

TrustPinSDKPlatform get instance

The default instance of TrustPinSDKPlatform to use.

Defaults to MethodChannelTrustPinSDK.

Implementation

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

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

Implementation

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