posPrintText method

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

Prints a text string to the POS printer with optional formatting options.

  • align: Text alignment (left, center, right).
  • attribute: Text style attributes (bold, underline, etc).
  • width: Width multiplier for the text.
  • height: Height multiplier for the text.

Implementation

Future<void> posPrintText(
  String text, {
  PTextAlign align = PTextAlign.left,
  PTextAttribute attribute = PTextAttribute.normal,
  PTextW width = PTextW.w1,
  PTextH height = PTextH.h1,
}) {
  throw UnimplementedError('posPrintText() has not been implemented.');
}