NetworkPrinter class

Network Printer

Constructors

NetworkPrinter(PaperSize _paperSize, CapabilityProfile _profile, {int spaceBetweenRows = 5})

Properties

hashCode int
The hash code for this object.
no setterinherited
host String?
no setter
paperSize → PaperSize
no setter
port int?
no setter
profile → CapabilityProfile
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

barcode(Barcode barcode, {int? width, int? height, BarcodeFont? font, BarcodeText textPos = BarcodeText.below, PosAlign align = PosAlign.center}) → void
beep({int n = 3, PosBeepDuration duration = PosBeepDuration.beep450ms}) → void
connect(String host, {int port = 91000, Duration timeout = const Duration(seconds: 5)}) Future<PosPrintResult>
cut({PosCutMode mode = PosCutMode.full}) → void
disconnect({int? delayMs}) → void
delayMs: milliseconds to wait after destroying the socket
drawer({PosDrawer pin = PosDrawer.pin2}) → void
emptyLines(int n) → void
feed(int n) → void
hr({String ch = '-', int? len, int linesAfter = 0}) → void
image(Image imgSrc, {PosAlign align = PosAlign.center}) → void
imageRaster(Image image, {PosAlign align = PosAlign.center, bool highDensityHorizontal = true, bool highDensityVertical = true, PosImageFn imageFn = PosImageFn.bitImageRaster}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printCodeTable({String? codeTable}) → void
qrcode(String text, {PosAlign align = PosAlign.center, QRSize size = QRSize.Size4, QRCorrection cor = QRCorrection.L}) → void
rawBytes(List<int> cmd, {bool isKanji = false}) → void
reset() → void
reverseFeed(int n) → void
row(List<PosColumn> cols) → void
setGlobalCodeTable(String codeTable) → void
setGlobalFont(PosFontType font, {int? maxCharsPerLine}) → void
setStyles(PosStyles styles, {bool isKanji = false}) → void
text(String text, {PosStyles styles = const PosStyles(), int linesAfter = 0, bool containsChinese = false, int? maxCharsPerLine}) → void
textEncoded(Uint8List textBytes, {PosStyles styles = const PosStyles(), int linesAfter = 0, int? maxCharsPerLine}) → void
toString() String
A string representation of this object.
inherited

Operators

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