PrinterService constructor
PrinterService(
- String? _scheme,
- String? _host,
- MethodChannel messagesChannel
Implementation
PrinterService(this._scheme, this._host, MethodChannel messagesChannel) {
_queueManager = QueueManager(messagesChannel: messagesChannel);
_stream().listen((LioResponse response) {
if (response.code == 0) {
_queueManager!.processResponse(response);
} else {
_queueManager!.clear();
_queueManager!.callback!.call(response);
}
});
}