printTSPL static method

Future<String?> printTSPL({
  1. required String data,
})

Sends raw TSPL commands to the printer.

data: The raw TSPL command data as a string.

Returns a String indicating the result of the operation, or null.

Implementation

static Future<String?> printTSPL({required String data}) async {
  return await SunmiPrinterPlusPlatform.instance.printTSPL(data);
}