PrinterService constructor

PrinterService(
  1. String? _scheme,
  2. String? _host,
  3. 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);
    }
  });
}