PrinterTransport class abstract

Transport-Abstraktion fuer den ESC/POS-Druck.

Trennt den Byte-Bau (in KeckPrinter) vom Byte-Versand (hier). Damit laesst sich derselbe Druckcode ueber WLAN (WifiTransport), Bluetooth (BluetoothTransport) oder — spaeter — USB/eigene Kanaele fahren, ohne die Fassade anzufassen. Eigene Transporte muessen nur dieses Interface erfuellen.

Bewusst zustandsarm gegenueber dem globalen KeckPrinterService: eine Transport-Instanz haelt (wenn ueberhaupt) ihre eigene Verbindung, statt den prozessweiten Drucker-Zustand zu teilen.

Implementers

Constructors

PrinterTransport()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Gibt die Verbindung frei (Bluetooth: trennen; WLAN: no-op).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(List<int> bytes) → Future<KeckPrintResult>
Sendet fertige ESC/POS-bytes. Wirft nicht — das Ergebnis (gesendet oder Fehler) kommt im KeckPrintResult.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited