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