posPrintText method

  1. @override
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,
})
override

Sends text to the POS printer with optional formatting.

Implementation

@override
Future<void> posPrintText(
  String text, {
  PTextAlign align = PTextAlign.left,
  PTextAttribute attribute = PTextAttribute.normal,
  PTextW width = PTextW.w1,
  PTextH height = PTextH.h1,
}) async {
  await _channel.invokeMethod('pos_printText', {
    'text': text,
    'align': align.index,
    'attribute': attribute.index,
    'width': width.index,
    'height': height.index,
  });
}