tsplPrintText abstract method

Future<void> tsplPrintText(
  1. String text, {
  2. PTextAlign align = PTextAlign.left,
  3. PTextAttribute attribute = PTextAttribute.normal,
  4. PTextW width = PTextW.w1,
  5. PTextH height = PTextH.h1,
})

Prints text on TSPL printers with optional formatting.

  • text: The text to print.
  • align: Text alignment.
  • attribute: Text attribute (bold, underline).
  • width: Width multiplier.
  • height: Height multiplier.

Implementation

Future<void> tsplPrintText(
  String text, {
  PTextAlign align = PTextAlign.left,
  PTextAttribute attribute = PTextAttribute.normal,
  PTextW width = PTextW.w1,
  PTextH height = PTextH.h1,
});