instance property
SmartPrinterFlutterPlatform
get
instance
The current platform-specific implementation of SmartPrinterFlutterPlatform.
Implementation
static SmartPrinterFlutterPlatform get instance => _instance;
set
instance
(SmartPrinterFlutterPlatform instance)
Sets the platform-specific implementation. Throws an error if the token is invalid, ensuring only trusted implementations are used.
Implementation
static set instance(SmartPrinterFlutterPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}