printText method

Future<int?> printText(
  1. String text, {
  2. NyxTextFormat? textFormat,
})

printText will print text to format text you can use NyxTextFormat to set font size or font style ...etc success result is 0.

Implementation

Future<int?> printText(String text, {NyxTextFormat? textFormat}) {
  return NyxPrinterPlatform.instance
      .printText(text, textFormat ?? NyxTextFormat());
}