instance property

SunmiPrinterXPlatform get instance

The default instance of SunmiPrinterXPlatform to use.

Defaults to MethodChannelSunmiPrinterX.

Implementation

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

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

Implementation

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