printText method
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());
}