posPrintText method
Future<void>
posPrintText(
- String text, {
- PTextAlign align = PTextAlign.left,
- PTextAttribute attribute = PTextAttribute.normal,
- PTextW width = PTextW.w1,
- 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,
});
}