instance property

XprinterSdkPlatform get instance

The default instance of XprinterSdkPlatform to use.

Defaults to MethodChannelXprinterSdk.

Implementation

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

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

Implementation

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