instance property

ThermalUsbPlatform get instance

The default instance of ThermalUsbPlatform to use.

Defaults to MethodChannelThermalUsb.

Implementation

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

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

Implementation

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