startPTTPrint method

Future<bool> startPTTPrint(
  1. int key,
  2. String encode
)

Start creating the command and print data string for a P-touch Template. Specify a template and the character encoding. This function assumes the default P-touch Template settings. Your application may not be able to print if the printer's settings differ from the defaults. If necessary, use the P-touch Template Setting Tool to configure the printer.

Implementation

Future<bool> startPTTPrint(int key, String encode) async {
  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
    "key": key,
    "encode": encode
  };

  final bool success = await _channel.invokeMethod("startPTTPrint", params);

  return success;
}