instance property

ZettleSdkPlatform get instance

The default instance of ZettleSdkPlatform to use.

Defaults to MethodChannelZettleSdk.

Implementation

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

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

Implementation

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