instance property

PrinterPlusPlatform get instance

The default instance of PrinterPlusPlatform to use.

Defaults to MethodChannelPrinterPlus.

Implementation

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

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

Implementation

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