printText method
Prints the provided text with the specified text format.
text
The text to be printed.
textFormat
The formatting options to apply to the text.
Returns an int representing the result of the print operation, or null if it fails.
Implementation
Future<int?> printText(String text, NyxTextFormat textFormat) {
return instance.printText(text, textFormat);
}