statusStream property

  1. @override
Stream<PrinterStatus> get statusStream
override

Stream of PrinterStatus updates from the printer.

Implementation

@override
Stream<PrinterStatus> get statusStream {
  return statusChannel.receiveBroadcastStream().map((event) {
    final map = Map<String, dynamic>.from(event ?? {});
    return PrinterStatus.fromJson(map);
  });
}