GenericPrinter class abstract
Base class for ESC/POS Printers.
- Implementers
Constructors
- GenericPrinter.new(PaperSize _paperSize, CapabilityProfile _profile, {int spaceBetweenRows = 5, Generator? generator})
Properties
- generator → Generator
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- paperSize → PaperSize
-
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 -
cut(
{PosCutMode mode = PosCutMode.full}) → void -
drawer(
{PosDrawer pin = PosDrawer.pin2}) → void -
emptyLines(
int n) → void -
endJob(
) → void -
feed(
int n) → void -
hr(
{String ch = '-', int? len, int linesAfter = 0, PosStyles styles = const PosStyles()}) → 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
-
writeBytes(
List< int> bytes) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited