instance property

The default instance of SunmiPrinterPlusPlatform to use.

By default, this is set to MethodChannelSunmiPrinterPlus, but can be overridden for platform-specific implementations.

Implementation

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

Set a custom platform instance.

Platform-specific implementations should set this to their own instance that extends SunmiPrinterPlusPlatform.

Implementation

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