instance property
NyxPrinterPlatform
get
instance
Gets the current instance of the platform interface.
This provides access to platform-specific methods for printing operations.
Implementation
static NyxPrinterPlatform get instance => _instance;
set
instance
(NyxPrinterPlatform instance)
Sets a custom instance for the platform interface.
This method is used for testing purposes or when swapping the platform interface with a different implementation.
Implementation
static set instance(NyxPrinterPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}