printText method

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

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);
}