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