printText method

Future<String?> printText({
  1. required String text,
  2. SunmiTextStyle? style,
})

Prints plain text with an optional SunmiTextStyle.

text: The text to print. style: Optional text style to apply.

Returns a String indicating the result or null if unsuccessful.

Implementation

Future<String?> printText(
    {required String text, SunmiTextStyle? style}) async {
  return await SunmiPrinter.printText(text, style: style);
}