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