printText static method

Future<void> printText(
  1. String text
)

Prints the given text to the receipt, font and methods relating to other settings must be called before this method

Implementation

static Future<void> printText(String text) async {
  final args = <String, dynamic>{"text": '$text\n'};
  await _channel.invokeMethod(commandPrintText, args);
}