instance property

PosBtPrinterPlatform get instance

The default instance of PosBtPrinterPlatform to use.

Defaults to MethodChannelPosBtPrinter.

Implementation

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

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

Implementation

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