Printer class

Constructors

Printer({required String name, required PrinterStatus status, required String hot, required String version, required String id, required String cutter, required String density, required String distance, required String gray, required String paper, required String type, required Future<PrinterStatus> getStatus(), required Future<void> openCashDrawer(), required Future<bool> isCashDrawerOpen(), required Future<void> printEscPosCommands(Uint8List commands), required Future<void> waitForCashDrawerClose(), required Future<void> setAlign(Align align), required Future<void> printText(String text, {Align align, bool bold, bool italic, bool strikethrough, int textHeightRatio, int textSpace, int textWidthRatio, bool underline}), required Future<void> autoOut(), required Future<void> printQrCode(String data, {Align align, int dot}), required Future<void> printTexts(List<String> texts, {List<Align> columnAligns, List<int> columnWidths}), required Future<void> addText(String text, {Align align, bool bold, bool italic, bool strikethrough, int textHeightRatio, int textSpace, int textWidthRatio, bool underline})})

Properties

addText Future<void> Function(String text, {Align align, bool bold, bool italic, bool strikethrough, int textHeightRatio, int textSpace, int textWidthRatio, bool underline})
final
autoOut Future<void> Function()
final
cutter String
final
density String
final
distance String
final
getStatus Future<PrinterStatus> Function()
final
gray String
final
hashCode int
The hash code for this object.
no setterinherited
hot String
final
id String
final
isCashDrawerOpen Future<bool> Function()
final
name String
final
openCashDrawer Future<void> Function()
final
paper String
final
printEscPosCommands Future<void> Function(Uint8List commands)
final
printQrCode Future<void> Function(String data, {Align align, int dot})
final
printText Future<void> Function(String text, {Align align, bool bold, bool italic, bool strikethrough, int textHeightRatio, int textSpace, int textWidthRatio, bool underline})
final
printTexts Future<void> Function(List<String> texts, {List<Align> columnAligns, List<int> columnWidths})
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setAlign Future<void> Function(Align align)
final
status PrinterStatus
final
type String
final
version String
final
waitForCashDrawerClose Future<void> Function()
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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