instance property
PosPrinterPlatform
get
instance
The default instance of PosPrinterPlatform to use.
Defaults to MethodChannelPosPrinter.
Implementation
static PosPrinterPlatform get instance => _instance;
set
instance
(PosPrinterPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends PosPrinterPlatform when they register themselves.
Implementation
static set instance(PosPrinterPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}