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