instance property

NkysdkPlatform get instance

The default instance of NkysdkPlatform to use.

Defaults to MethodChannelNkysdk.

Implementation

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

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

Implementation

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